Click to See Complete Forum and Search --> : Hidden input type problem in IE


-RooneY-
10-26-2007, 03:51 PM
Hi friends

I have a form which when submitted also passes the the value of a variable

echo "<input type= 'Submit' name= 'disapprove' value='Disapprove' ";

echo "<input type= 'hidden' name= 'ID' value='$id[$i]' ";

echo "</form>";

After the form is submitted and the page reloads, $_POST['ID'] gives the value of the variable in Firefox but not in IE. In IE, the hidden value is not passed. $_POST['ID'] gives NULL.

Can you please help me solve this ?

Thanks
Rooney

scragar
10-26-2007, 03:55 PM
by the look of it you don't close the input, which would cause it to clash with the form.

-RooneY-
10-26-2007, 03:57 PM
that was a typo. sorry.

scragar
10-26-2007, 04:05 PM
you got a link so I can check it out?

NightShift58
10-26-2007, 05:15 PM
In IE, the hidden value is not passed. $_POST['ID'] gives NULL.This would be a major disaster if it were true.

Something else has to be the problem. Can you post the entire script? Or at least the form?

The Little Guy
10-26-2007, 05:21 PM
Give this a try:
echo "<input type= 'Submit' name= 'disapprove' value='Disapprove' />";

echo "<input type= 'hidden' name= 'ID' value='{$id['$i']}' />";

echo "</form>";

JayM
10-26-2007, 05:48 PM
Where's your form open tag?

Should look something like this:


<form name="myForm" method="post" action="somepage.php">

-RooneY-
10-26-2007, 11:32 PM
There was some page structuring error on my part. Its working now.

And sorry on my part. Thanks for giving prompt responses.

Regards
Rooney