Re: hidden value
| From: | John English | Date: | Fri, 19 Apr 2002 12:48:22 +0000 |
| Subject: | Re: hidden value | ||
| References: | 1 | Groups: | php.lang |
| Request: | Send a blank email to php-lang+get-290@lists.php.net to get a copy of this message | ||
Joe wrote:
>
> 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'"
> ?>
... you need another ">" here to close the "input" tag...
<input type=hidden name="birth_month"
value=<? echo "survey->'$birth_month'" ?> >
> .....
> .....
> </html>
-----------------------------------------------------------------
John English | mailto:je@brighton.ac.uk
Senior Lecturer | http://www.it.bton.ac.uk/staff/je
Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS **
University of Brighton | -- see http://burks.bton.ac.uk
-----------------------------------------------------------------