Link to home
Start Free TrialLog in
Avatar of etechnicsit
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
ASKER CERTIFIED SOLUTION
Avatar of Richard Quadling
Richard Quadling
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If pg2.php contains a form which also uses POST, then you could ...

<?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;
?>