Re: passing variables using hidden fields
| From: | Chris Lee | Date: | Fri, 16 Mar 2001 14:31:17 +0000 |
| Subject: | Re: passing variables using hidden fields | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44282@lists.php.net to get a copy of this message | ||
your not putting it in quotes.
echo "
<input type=hidden name=people_name value=$people_name>
";
change to
echo "
<input type='hidden' name='people_name'
value='$people_name'>
";
quotes are your friend :)
--
Chris Lee
lee@mediawaveonline.com
""george"" <chiefmonkey@wisemonkeydesign.co.uk> wrote in message news:98tdl2$ps2$1@toye.p.sourceforge.net...
Hi,
I am building a contact form, which goes into a db I them pull the
information out and display it, then I pass the values to another page using
hidden fields but for some reason even though it displays the full thing on
the first page when I pass a variable to the next page it only displays the
first word.
so on the first page where it has pulled it from the db it will say
"this is a test"
next page it just says "test"
TIA
george
--
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