A problem with passing $_GET in an url
| From: | Davis Chan | Date: | Thu, 03 May 2007 04:36:09 +0000 |
| Subject: | A problem with passing $_GET in an url | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-254312@lists.php.net to get a copy of this message | ||
Hi! New to this newsgroup and is debugging a strange behaviour in a site under development. The developement platform is a Linux box running Fedora Core 6, Apache 2.2.3-5 and php-5.1.6-3. Here is the general flow of that particular part of the site:
php generated form ---(data submitted by pressing "submit" on the form and "ok" on a javascript confirm box)---> window.location="./script.php?var=value" ---> script.php process the form data
The problem is I cannot pass the "var=value" to script.php (the url on browser only says ./script.php? and $_GET is empty with a print_r() ) but if I type in the url manually, the script.php works. I checked the javascript also and it is ok.
I understand this might not be a php problem but I am totally lost. Any idea, insight, opinion is welcomed. Thanks.