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

urldecode question
How would I format this line of code properly?

<?php echo urldecode($_GET['Title']); ?

error help - Dynamic Image
I've been working on making my site less cluttered in the directories and more secure lately. In an

timed header image rotation
I have a joomla site and I was trying to setup a rotating image based on timing NOT just refreshing

weeks in a year
hi,

i found this snippet on php.net
QuoteFor the week number for weeks starting on Sunday:

Extract specific information from a PHP Multidimensional Array
Howdy! I've racked my brain over this for 24 hours now. I think it's time I asked for help. I'm lear

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

Generating unique numbers using php
Hi,
I need help in generating unique number using php.I tired using rand() in php.But, by using r

remove a ; from emails in textarea
Code: <?php

session_start();

$database_host = "localhost&qu

LIMIT $start, 10... how to pass last value queried into next page with GET??
Ok I know how to display the first or last 10 results of a query...

$result = mysql_query(&q

array_count_values question?
ok i'm trying to create a top ten list from a database of listed favorite movies.

the followi

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