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

Automatically Detect Phone Model for WAP Jar Deployment
Making a wap site is fairly simple, but I'd like to know if there's a way to make it so that the wap

Secure pages Sessions vs. Cookies & session_destroy() help
Im new here and new to PHP, I hope you can help me with some questions.

Im writing my web ap

Help Optimizing code
Good Morning,

I wrote a small import function for a website of mine and I know there has to b

how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s

Using loop to count number of entries
I'm writing a program that must ask user to type in numbers. After each entry, the program has to re

Create multiple (n) arrays
Hi there,

I have the following need:

I have 2 arrays (coming from a databases)

New to Arrays
Hi I am new to PHP (a week and a half now) and I am just beginning to read about arrays. I understan

what are '%S%', '%E%'
for example when i see Code: [Select]printf("Hello %srn", $name);
what does %s means

dynamic table with forms
I have a table that is populated with mysql data and in teh first column there is a raido button tha

PHP search multiple input field box help
I am having a problem with my search script. At current it will simply search by a selected date whi

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