Re: This beats me (variable not being passed through pages)
| From: | Jim Lucas | Date: | Mon, 24 Mar 2008 14:29:35 +0000 |
| Subject: | Re: This beats me (variable not being passed through pages) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272033@lists.php.net to get a copy of this message | ||
Mário Gamito wrote:
Hi, I have a ASP.NET / C# page calling a webmail Linux server: WebRequest request = WebRequest.Create("http://192.168.1.4/horde/imp/index.php?username=gamito"); (etc...) It seems to work as in my Linux Apache logs, i get: (...) "GET /horde/imp/index.php?username=gamito HTTP/1.1" 200 223 File index.php is: <?php $username_from_iis = $_REQUEST['username']; print('Hello ' . $username_from_iis); ?> But index.php only shows "Hello" and not "Hello gamito" as I'd expect. Any ideias ? Any help would be appreciated. Warm Regards, Mário GamitoSounds a little obvious, but change _REQUEST to _GET and see what you get. _REQUEST might not be getting populated correctly. It is configurable ya know. Check you php.ini and see if the variables_order entry is set correctly. This is mine; variables_order = "GPCS" (GET, POST, COOKIE, SESSION) There might be others that affect it, but I'm not sure. Maybe others will have suggestions. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare