quinonez@gmail.com wrote:[color=blue]
> i have a 7 page form and many many many variables..
> i cant figure out how to get the variables to move from each page and
> show after it is submitted. I can get the last page of the form to show
> on the action page but not any of the other pages before that.
>
> Should i be entering every single variable from each page into a
> $_SESSION['varname'][/color]
That's a possibility. You could also echo all variables from the
previous page in hidden fields in the next page, like this:
foreach ($_POST as $varname => $value) {
$value = function_you_should_write_to_escape_value($value);
echo "<input type=\"hidden\" name=\"$varname\" value=\"$value\" /> ";
}
Note that you can't have variables with the same name on different pages
if you use this technique.
HTH,
JP
--
Sorry, <devnull@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.