passing an array of objects after submit


Posted on 16th Feb 2014 07:03 pm by admin

How do I do this? This is what I have tried and it is not working.

<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="submit" name="set" id="set" value="Set Variables" />
Did you know?Explore Trending and Topic pages for more stories like this.
<input name="storeArr" name="storeArr" type="hidden" value="<?php echo serialize(htmlentities($arrVars)); ?>" />
</form>

and after the $_POST['set'] is set

$arrVars = unserialize(html_entity_decode(stripslashes($_POST['storeArr'])));
No comments posted yet

Your Answer:

Login to answer
72 Like 30 Dislike
Previous forums Next forums
Other forums

Click counter to ignore traffic from search bots
I have a click counter on my site that...well, counts the number of clicks a link gets on the frontp

search function
HI guys,

if anyone could point us in the right direction of how to do this, or provide some t

Scene graph using Direct3D?
There are several C++ scene graph based packages available for OpenGl, like say OSG,

http://w

filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h

error checking breaking my code
Hi there, OK first of all, big apologies for what I assume is really fundamental errors in the struc

PHP doesn't send my mail
Hi all, I found this and used it to send mail. Simple contact form with some required fields. The va

foreach help.
Hello all,

First time I'm attempting to use a foreach statement and was just wondering if my

How to form a xml form table with a single sql statement..?
Hi everyone,
I don't know if this is going to be a duplicate thread but i couldn't

Most basic form question ever?
Hello,

I want to use this snippet to make sure the fields in a form are ok before processing

Random date selection
i want to select random date with time(hour+minutes+sec) where date is specified(10/22/2009) and tim

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash