Q: Calling a script and keeping the URL clean

From: Date: Sat, 28 Oct 2000 15:28:15 +0000
Subject: Q: Calling a script and keeping the URL clean
Groups: php.general 
Request: Send a blank email to php-general+get-22449@lists.php.net to get a copy of this message
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

« previous php.general (#22449) next »