There's two ways I can think of two do this.

If you need to do it over SSL, or you want to do it the "right" way, or 
you have to use POST, use the CURL libraries to construct and send the 
POST request.
Check out the CURL section of the PHP manual -- there's lots of good 
how-to information there.

http://www.php.net/manual/en/ref.curl.php

If you're going for quick and dirty, just assemble a URL with the 
parameters as GET parameters instead, and just do a file_get_contents() 
on the URL.

file_get_contents('http://target.com/target.php?fname=joe&lname=foo&company=bar');

It's not pretty, but it gets the job done.

-Jeromie

>I have a PHP form (POST) in which I set the action as:
>form action="$_SERVER['PHP_SELF']" method="post" ...
>
>When submitted, I collect the post key => value pairs and populate an
>email to alert me that the form has been submitted.  What I need to
>know is, AFTER the email is sent, how do I then from this php page
>send a request to a page on a different server with some of the post
>key => value pairs attached to the request as if it were orinally
>posted from my PHP form.
>
>For example:
>
>1. A USER fills out my PHP form page and hits submit.
>
>2. The request returns to my PHP page which collects the $_POST key =>
>value pairs into a email, and sends a notification email to me.
>
>3. My PHP page collects some of the originally posted key => value
>pairs and sends a new POST request to a page on another server (as if
>it had been submitted from a form).
>
>4. This new page on the new server collects the POST key => value
>pairs and returns a dynamically prefilled reply to the USER's browser
>(appearing as if it were a reply to the USER's original submit).
>
>NOTE: The ONLY part I need help with is number 3
>
>
>
>
>
>
>
>
>The php_mysql group is dedicated to learn more about the PHP/MySQL web 
>database possibilities through group learning.  
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>  
>



The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to