Re: Q: Calling a script and keeping the URL clean
| From: | Stephan Slabihoud | Date: | Sat, 28 Oct 2000 17:16:12 +0000 |
| Subject: | Re: Q: Calling a script and keeping the URL clean | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22464@lists.php.net to get a copy of this message | ||
Hi,
> You want to pass the variables while the URL Is still clean? The
> only way I know, is to pass them trough a form as you yourself
> wrote. To pass other variables to script, use hidden form elements
> for each variable. However, I suggest passing the variable without
> a form unless it must be securely passed.
which method does PHP use to pass variables? When I use a hidden-form
element this value must be send to the script as well (in the HTML
header or HTML body) and the URL is "clean". So it should be possible to
simulate that behavior with the header() function or something like
that?!?
When I use
Header("Location: $BASEURL?aVar=" . rawurlencode($aVar));
everybody can see the variables.
Isn't it possible to simulate the "hidden-form element"-version with
that function?
Stephan