Re: header("Location:") with POST-data
| From: | Matthew Ballard | Date: | Fri, 15 Dec 2000 07:36:10 +0000 |
| Subject: | Re: header("Location:") with POST-data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30466@lists.php.net to get a copy of this message | ||
It's not possible to redirect the user with POST variables. Assuming both pages are on the same site, you could use session variables, or cookies to pass the data, but otherwise, you would either have to print out a form with hidden variables and have the user hit the button, or I believe it's possible to use JavaScript to make the form submit as soon as the for is created with hidden variables.
Matthew
At 02:39 AM 12/15/2000 +0100, you wrote:
It is possible to do a redirect like: header("Location: /script.php?X=1&Y=2\n"); but is this possible with POST and not GET-data, so the user wouldn't see the Get-Variables in the URL??? thanks michi