Now i can pass arrays as hidden variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
singh1
Forum Newbie
Posts: 2
Joined: Mon Dec 30, 2002 4:34 pm

Now i can pass arrays as hidden variables

Post 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
Post Reply