This beats me (variable not being passed through pages)

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....


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-24-2008
Mário Gamito
 
Posts: n/a
Default This beats me (variable not being passed through pages)

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
Reply With Quote
  #2 (permalink)  
Old 03-24-2008
Jim Lucas
 
Posts: n/a
Default Re: [PHP] This beats me (variable not being passed through pages)

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0