Click to See Complete Forum and Search --> : retrieve value from hiddenfield, only returns first work


damon2003
11-20-2003, 05:54 AM
Hi,
I am storing strings in hidden fields.

<input name="hiddenField" type="hidden" id="hiddenField" value=<?php echo $vari?>>

on the next page I do this
$hiddenField=$_GET[hiddenField];

there should be several words stored in this hidden field. When I echo $hiddenField I am only getting the first word,
does anyone know why this is?
thanks

Khalid Ali
11-20-2003, 06:31 AM
looks like you are having formatting p[roblems,make sure your string in html is enclosed with in double quotes/single quotes

damon2003
11-23-2003, 01:30 PM
Hi, this is what I have.


This is on the first page. I have checked that the hidden field contains all strings.
<input name="hiddenFieldYourName" type="hidden" id="hiddenFieldYourName" value=<?php echo $textfieldYourName; ?>>


On the nect page I get the hidden field value but...
$hiddenFieldYourName=$_GET['hiddenFieldYourName'];


WHen I echo the value only the first string is displayed?
<?php echo $hiddenFieldYourName; ?>