RE: [PHP] Forms variables not going through different pages :(
| From: | MR | Date: | Mon, 27 Nov 2000 09:02:56 +0000 |
| Subject: | RE: [PHP] Forms variables not going through different pages :( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27330@lists.php.net to get a copy of this message | ||
Sandeep Hundal ...
> Ok,
>
> I know this has probably been posted loads of times, but I've been
> through mailing list archives like 5 times and I still haven't found
> a satisfactory answer.
>
> I have a form which I send to another page to preview it, and then
> ask the user to click the submit button so it goes into the database.
Just store the variables in hidden fields in the form that submits to the database:
reset ($HTTP_POST_VARS);
while ( list($name,$value) = each($HTTP_POST_VARS) )
{
echo "<INPUT TYPE=HIDDEN NAME='$name' VALUE='$value'>";
}