Re: remembering variables between pages when using forms ...

From: Date: Thu, 18 Oct 2001 16:19:27 +0000
Subject: Re: remembering variables between pages when using forms ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71506@lists.php.net to get a copy of this message
didn't want to bother everyone with all the code, but here's a mildly edited version ... here's the form: <form name="form1" method="post" action="main.php" target="_top" > <input type="hidden" name="city" value="<?php echo $city; ?>" > <input type="hidden" name="password" value="<?php echo $password; ?>" > <?php echo "city is " . $city. "<br>password is " . $password; ?> You're authorized ! Click <input type="submit" name="Submit" value="HERE"> to continue. </form> -------------- here's the framed page called by the form: <html> <head> <title>Paymentech Print Orders</title> <base target="main"> </head> <frameset rows="85,*"> <frameset cols="200,*"> <frame frameborder="0" noresize marginwidth="0" marginheight="0" scrolling="no" src="top.html"> <frame frameborder="0" noresize marginwidth="0" marginheight="0" scrolling="no" src="top_right.html" bordercolor="#c32933"> </frameset> <frameset cols="200,*"> <frame frameborder="0" noresize marginwidth="0" marginheight="0" scrolling="no" src="middle_left.php" > <frame frameborder="0" noresize marginwidth="20" marginheight="20" src="middle.php" name="main" > </frameset> </frameset><noframes> <body bgcolor="#FFFFFF"> </noframes> --------------------- and here's the page within the frame where i'm trying to use the values from the form above: <?php echo "city is " . $city . "<br>password is " . $password; ?> <table width="520" border="0" cellspacing="3" cellpadding="5" height="348"> thanks again, ken ----- Original Message ----- From: "Dave Watkinson" <d.watkinson@mightymatch.com> To: "baker downloads" <kmurrah@bakergrfx.com>; <php-general@lists.php.net> Sent: Thursday, October 18, 2001 11:04 AM Subject: RE: [PHP] remembering variables between pages when using forms ... where's your code ken? are you being strict with the case of the variable name? is the hidden element within the forms tags??? -----Original Message----- From: baker downloads [mailto:kmurrah@bakergrfx.com] Sent: 18 October 2001 17:13 To: php-general@lists.php.net Subject: [PHP] remembering variables between pages when using forms ... i hope i can make my question understood ... i've input a value $city in my form, and i can retrieve it on the following page (the page which was the "action" of the form) ... but then, when i try to use a "hidden" type to move it to my next page (which is a form), i lose the value ... i cannot access it from a page within the form ... does that make sense? if so, can anyone help? thanks in advance. ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#71506) next »