Re: Can a form submit to two PHP form processers in succession?

From: Date: Mon, 22 Jul 2002 15:04:51 +0000
Subject: Re: Can a form submit to two PHP form processers in succession?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108869@lists.php.net to get a copy of this message
//post to this script if($value_found_in_database) include('error_document.php'); else include('handling_script.php'); Op maandag 22 juli 2002 16:59, schreef DonPro: > 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? > > Thanks, > Don

« previous php.general (#108869) next »