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

Mail sending is slow on server
Why mail is taking time to be send on apache-linux server

Stumped by Third Day of Month problem
I am trying to build an algorithm that will essentially do this:
Code: [Select]$this_month = Oct

C problem struct and string
Hi guys,

This is my first post and I'm hoping the experts here can help me solve my problem.<

please fix the error
What is the error in the below code ???
Line number On/Off | Expand/Contract <?php

A little help needed passing hidden values to next page
I have a page that has hidden values in a form.

example
Code: <input name='signupID

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

session_start();

$database_host = "localhost&qu

GET * FROM _____ Except?
I have a site that is for stock photography.

This section of the code calls images to display

DirectoryIterator and Hacked Website
Hi Everyone.

My problem:
Some one has been sneaking in to my website hidden Iframes. I've

dropdown menu
Hello everbody,

I am php newbie.
I need to develop a program that once click the drop do

Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query.

These usually span

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