Re: Can a form submit to two PHP form processers in succession?
| From: | Richard Lynch | Date: | Mon, 22 Jul 2002 23:13:19 +0000 |
| Subject: | Re: Can a form submit to two PHP form processers in succession? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108974@lists.php.net to get a copy of this message | ||
>Hi,
>
>I'm not sure how to do this but I have a form which I wish to do the following.
>
>When the uses clicks the "submit button", I wish to perform a check where I
>look for a value in a MySQL database. If found, I need
>to return an error page telling the user that the value already exists. I
>assume that I can just POST to a PHP page that performs
>the check.
>
>If the value was not found, I would like to POST the results to a PHP form
>handling script I use.
>
>The above tow are separate PHP documents that are not connected. In
>essence, it is akin to one form processing page handing off the
>information to another page. Can this be done in PHP?
In addition to the other worthy solutions, there is a "posttohost" function
out there that Rasmus wrote ages ago in PHP.
It will let you POST any data you like to any web-form you can visit.
Quite handy. :-)
Google for "Rasmus Lerdorf and PostToHost"
--
Like Music? http://l-i-e.com/artists.htm