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

empty() error
Why does

Code: empty($USER_ID = $_SESSION["USER_ID"])
create this error...

Regarding accessing SQL query issued by any user in Oracle 10g
Hi all,
i want to know the queries issued by various users accessing a database...

Calculating n! using vector
#include
#include
#include

using

preg-match with a string and numbers
Hi, I can't get the expression to work for my preg_match, what I'd like is for it to match the strin

xml element exists
Code: [Select]<?xml version="1.0"?>
<Addresses>
<

Formatting echo from database
So I have a database that stores First and last names, then echos them back to a website, as of now

PHP Code / Script To check weather the given email exists in a domain
Hi,

I want to implement the following in my web page

in sign up we will ask to enter u

True way to see if action was successful?
If this is a good way to see if action was successful to continue:

Code: function changeGa

Security Exception on pages using AJAX
I am getting the exception: attempted to perform an operation not allowed by the security policy on

Force download script not handling files with spaces properly
I have a regular old php force download script, uses this code:

Code: header("Cache-Cont

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