Re: old form values

From: Date: Sun, 01 Oct 2000 21:56:14 +0000
Subject: Re: old form values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18222@lists.php.net to get a copy of this message
This is what I do: <?php /* or whatever the variables are you have in the first form */ $savethese = array ("firstname", "lastname", "address", "city", "state", "phone"); while ( list($null, $varname) = each($savethese) ) { echo "<Input type=hidden name=\"$varname\""; echo " value=\"".$HTTP_POST_VARS[$varname]."\">\n"; } ?> You could also skip the $savethese array, and just iterate through $HTTP_POST_VARS. Hope this helps. -mike On Sun, 1 Oct 2000, bryan brown wrote: > > I have a form and because I have to keep it in a frame > w/out scrolling, I have to split it into 2. When the > user fills the first one and everything is correct > (checking it in a seperate php file that will report > which one was entered incorrectly and goiing back to > the initial form), it goes to the second one. When > thats filed correctly, all the info goes to a mysql > db. Now, I lose the values of the first form when the > user goes to the second form. I tried to keep track of > the values using dummy variables but it doesnt work. > Is there something I can do?? Please help me out. Thanks. > > __________________________________________________ > Do You Yahoo!? > Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! > http://photos.yahoo.com/ > > -- > 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 > > -- "don't you know about the new fashion, honey? all you need are looks and a whole lotta money" -- billy joel GnuPG key available at http://devel.duluoz.net/pubkey.asc Key ID = 1024D/9A256AE5 1999-11-13 Mike Glover <mpg4@duluoz.net> Key fingerprint = EF6E 8BCB 4810 E98C F0FD 4596 367A 32B7 9A25 6AE5

« previous php.general (#18222) next »