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" />
<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

A Few Questions
Hi, I want to ask a few questions that I can't seem to find..

1) I'm creating a "shortcu

Passing variables with pagination - iterating through unique id per link
Hi everyone,
I have seen a few topics like this one. Still cant find the specific thing, so I am

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

Array question
Does anyone know how to create a program that takes the $ amount for 8 different departments and gi

Trouble verifying database password
Thankyou to everyone who responded to my last post (I can't find the posting, it has been buried). <

how to export excel file in same server
My first post - php newbie, so appreciate your support.

I'm currently using headers to save w

Setting/Modify Headers using mail() function
I have a question about setting email headers when using mail() in a php script.

When I send

Looping Problem
I've got a client that has a database with about 200 events at any given time. I'm trying to loop t

PHP using IF to display error
i have a MySQL query and i want to display 1 thing only if the number of affected rows is >=1

need good snippet manager
Hi. as i am coding and learning more, it is becoming difficult to manage code snippets. how you mana

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