RE: [PHP] hidden value

From: Date: Thu, 04 Apr 2002 07:53:19 +0000
Subject: RE: [PHP] hidden value
Groups: php.general 
Request: Send a blank email to php-general+get-91496@lists.php.net to get a copy of this message
This should work: <input type="hidden" name="chosen_birth_month" value="<?echo $birth_month?>"> If the hidden input structure name is the same as the radio buttons' name, you could run into trouble. Also, you forgot quotes around the 'hidden'. Why try to use the form name as a class (survey->'$birth_month')? Cheers Rudolf Visagie Principal Software Developer Digital Healthcare Solutions <mailto:rudolf@dhsolutions.co.za> -----Original Message----- From: Joe [mailto:joeyan@ctimail3.com] Sent: Thursday, April 04, 2002 9:59 AM To: php-general@lists.php.net Subject: [PHP] hidden value I had designed a web survery. As there is some bugs of "session" function on php windows version. so i use hidden value to pass the data to next page. here are the code: <html> ..... <form name="survey"....> <input type="radio" value="Jan" name="birth_month" checked>January ..... ..... <input type=hidden name="birth_month" value=<? echo "survey->'$birth_month'" ?> ..... ..... </html> It seems that it can pass the data/variable to next page. but i don't know why the variable display on the page, not hidden. I think my php code that pass hidden value had error but i don't know how to correct. Can anyone help me? thx! best regards, Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#91496) next »