Re: Q: Calling a script and keeping the URL clean
| From: | Web Admin | Date: | Sat, 28 Oct 2000 18:31:08 +0000 |
| Subject: | Re: Q: Calling a script and keeping the URL clean | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22475@lists.php.net to get a copy of this message | ||
Hi,
Unfortunately, with that function it's not possible. You have to use
hidden form variables and post the variables trough a form post
method or store the values of the variables as cookies. If you really
need to keep the value of the variables secure and you insist on
using your own method (header), you better code the values and
decode at the other side which I personally do not suggest. Different
coding methods are available on the net.
Ahmad Anvari
http://i.am/anvari
----- Original Message -----
From: Stephan Slabihoud
To: php-general@lists.php.net
Sent: Saturday, October 28, 2000 8:46 PM
Subject: Re: [PHP] Q: Calling a script and keeping the URL clean
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net