Here ya go: Basically im trying to update details in a database, after the new details are put into a form they are printed to the screen with a 'are the details correct' scenario. From there if they click 'no' i want them to be put back to the updateaddress.php page but also pass two php variables back to that page for use later on. If they say yes i will do mysql query calls and update the database but also need to forward them to another php page and pass varaible values to that new page <?
echo '<form method="post"><input type="submit" name="choice" value="yes"> <input type="submit" name="choice" value="no"></form> '; switch($_POST['choice']) { case "yes" : #somethin will happen here ; break; #if not we need to keep the customer_id and quantity and start again case "no" : echo '<INPUT type="hidden" name="txtJars" value='.$quantity.'><INPUT type="hidden" name="txtCustomer_id" value='.$customer_id.'>'; header("Location: updateaddress.php"); exit; } ?> Cheers Baldey_uk -----Original Message----- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: 11 May 2002 12:15 To: PHP-General Subject: Re: [PHP] using header (); -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * and then baldey_uk declared.... > Yes i have tested it thats why i am asking, as it is not working either way > for me, it just stays on the same screen but blanks the previous output to > the page. Weird, works fine for me. Let's see the code. - -- Nick Wilson // www.tioka.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE83P06HpvrrTa6L5oRAg70AKCjl4NlTqVt0lBV9TChHXOP5blMOwCeKpDW WDkFT7yFhGykBAozd0TKirY= =LI4h -----END PGP SIGNATURE----- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php