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:[EMAIL PROTECTED]>

-----Original Message-----
From: Joe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 9:59 AM
To: [EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to