etechnicsit
asked on
PHP Parse Array
Hi Experts,
pg1.php sent a form to pg2.php as $_POST['return'], pg2.php extracted the array data within $_POST['return'] and used the data.
Now I need to send that same array to pg3.php and extract the data from the array.
The array contains nothing but a list of id numbers.
Data must be parsed when they click a Send Email Link.
Please Help!
Thanks in advance
pg1.php sent a form to pg2.php as $_POST['return'], pg2.php extracted the array data within $_POST['return'] and used the data.
Now I need to send that same array to pg3.php and extract the data from the array.
The array contains nothing but a list of id numbers.
Data must be parsed when they click a Send Email Link.
Please Help!
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<?php
$s_POST = serialize($_POST);
$s_hidden_post = '<input type="hidden" name="Previous_POST" value="' . $s_POST . '">';
// Now use $s_hidden_post in the form somewhere.
echo <<< END_HTML
<form method="POST" action="./pg3.php">
$s_hidden_post
<input type="text" name="something">
<input type="submit">
</form>
END_HTML;
?>