Sending Hidden "post" Variables (arrays)

This isn't really a script question, but here goes. <br /><br />You know the way you can send hidden variables in a form using the <input> tag. Well, I'm trying to send a hidden array variable. Arrays are normally sent through the <select multiple="multiple"> tag and I would like to send one while hidden. <br /><br />Is there any way of doing something like this. I was thinking about a workaround. I could build the form like normal, and use css tags to make it invisible. <br /><br />What do you think? If you need clarification, Just let me know. I can post an example if neccessary.<!--content-->
not sure if you can use something like Sessions to accomplish this, Just a thought though...<br />I am still learning about php so sorry if this is not in line with what you ar etrying to accomplish<!--content-->
nope, just to clarify something...it won't be using php. <br /><br />If there is such a thing, It will be something along these lines <br /> <input type="hidden" name="myarr" value="serialized_array" /><!--content-->
You almost got it:<br /> <input type="hidden" name="myarr<b>[]</b>" value="serialized_array" /><br /><br />The answer is those [ ] in the name attribute.<br /><br />Hope it helps <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Geez, That was it.... <br /><img src="http://upit.section31.us/uploads/cassetete.gif" border="0" class="linked-image" /><br /><br />Whats this, the 100th time Raul has helped me out. You deserve an award of some kind. <br /><br />Here is the final code for anyone else that ever needs to do something simliar.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><form action="foobar.php"  method="post"><br />    <input type="hidden" name="myarr[]" value="5" /><br />    <input type="hidden" name="myarr[]" value="7" /><br /><input type="submit" /><br /></form><!--c2--></div><!--ec2--><br /><br />This will send a post variable ( $_POST['myarr'] ) as an array, indexed like the following.<br />myarr[0] -> 5<br />myarr[1] -> 7<!--content-->
That is pretty Good stuff to know, Thanks for the update I will have to try that myself , Thanks again<!--content-->
An award? No way! I just like to help out where I can <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br /><br /><br /><br /><br /><!--sizeo:1--><span style="font-size:8pt;line-height:100%"><!--/sizeo-->Psst, by the way, that's my bank account number, in that PM I just sent you... <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif" /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/tongue.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tongue.gif" /><!--sizec--></span><!--/sizec--><!--content-->
 
Top