Page 1 of 1

Now i can pass arrays as hidden variables

Posted: Mon Dec 30, 2002 9:57 pm
by singh1
I was having a problem I figured how to show the passed variable. What i was trying to do was pass an array of states as an <input type=hidden> and was having a hard time trying to read it in the second page, because i have had to always add $_POST or $_GET before the variables to be able to access them, now this was geting confusing to put a $_post/get correctly before the array to access in the second php page (yes the form was used). Below is what works in the second /target page. below you can see the way the array which is of an input type = hidden in the main page, being used in the second page for comparizon purpose.

if($_POST[HiddenState][$counter] == $_POST[State])

I HAVE PUT THIS BIT UP AS MY SINCERE CONTRIBUTION TO THIS FORUM
enjoy RAVI :D :D