This is a discussion on This beats me (variable not being passed through pages) within the PHP General forums, part of the PHP Programming Forums category; Hi, I have a ASP.NET / C# page calling a webmail Linux server: WebRequest request = WebRequest.Create("http://192....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 Gamito |
|
|||
|
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 Gamito > Sounds 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 |