Re: Q: Calling a script and keeping the URL clean
| From: | Dragos Roua | Date: | Sat, 28 Oct 2000 16:10:52 +0000 |
| Subject: | Re: Q: Calling a script and keeping the URL clean | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22452@lists.php.net to get a copy of this message | ||
Try sessions.
Have a look at the php manual under the section sessions and you'll see what is
all about. If you do not have php4 you can try to pass variables from one page
to another while keeping the URL "clean" with cookies.
>
> Stephan,
> 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.
> Ahmad Anvari
> ----- Original Message -----
> From: Stephan Slabihoud
> To: php-general@lists.php.net
> Sent: Saturday, October 28, 2000 6:58 PM
> Subject: [PHP] Q: Calling a script and keeping the URL clean
>
>
> Hi,
>
> when I post variables using a HTML form like this
>
> echo ("<form method=POST action=\"SECONDSCRIPT.PHP">\n");
> echo ("<input type=hidden name=aVar value=\"$aVar\">"); [...]
>
> the URL is still clean and only shows "www.xyz.de\SECONDSCRIPT.PHP" in
> the addressline of the browser.
>
> Now I want to call a script without any user interaction. I use:
>
> Header("Location: $BASEURL?aVar=" . rawurlencode($aVar));
>
> The URL shows "www.xyz.de\SECONDSCRIPT.PHP?aVar=Hello%20world". Is there
> an alternative method to pass variables between scripts?
>
> Thanx very much.
>
> Stephan
>
> ---
> http://www.8bit-museum.de
>
>
> --
> 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
>
>
>
>
--
Dragos Roua
Mirabilis Media,
http://www.portal.ro http://www.net-info.ro
http://www.analyser.ro http://www.adserver.ro
http://www.culinar.ro http://www.cartipostale.ro