Re: Can't fetch HTTP POST data in PHP?
| From: | Ivan Marenic | Date: | Mon, 17 Nov 2003 11:20:46 +0000 |
| Subject: | Re: Can't fetch HTTP POST data in PHP? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169914@lists.php.net to get a copy of this message | ||
Hi, Kim.
Your example is good but you missed the point here. Chris knows exactly
where my problem is.
Sending HTTP POST from mobile device is a bit different than using classic
web client. It shouldnt be, but it is.
Data is going trough WAP gateways, mobile operators proxeis ...
Worst case scenario is that some header items can be generated by
application, some by the phone's runtime, and others by the WAP gateway.
And those reaching the server might not be what we expect.
Regards,
Ivan
"Kim Steinhaug" <kim@steinhaug.com> wrote in message
news:20031117102644.85230.qmail@pb1.pair.com...
> I dont see the problem here at all, here is my test :
> CutNpaste into your own environment ans save as .php file .
>
> All I did was remove the php_info() so that variables dont get
> messed up (apparently), and removed the error_reporting.
>
> Result gives this :
> array(3) { ["username"]=> string(3) "123" ["email"]=>
> string(3) "123"
> ["submit"]=> string(10) "Submit me!" }
>
> -------------------------------------------------------------
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title>Untitled</title>
> </head>
> <body>
> <?php
> //error_reporting(E_ALL);
> echo "<pre>\n";
> //phpinfo();
> echo "</pre>\n<br/>";
> var_dump($_POST);
> ?>
> <form action="<?=$PHP_SELF?>" method="POST">
> Your name: <input type="text" name="username"/><br/>
> Email: <input type="text" name="email"/></br>
> <input type="submit" name="submit" value="Submit me!">
> </form>
> </body>
> </html>
> --------------------------------------------------------------
>
> --
> Kim Steinhaug
> ---------------------------------------------------------------
> There are 10 types of people when it comes to binary numbers:
> those who understand them, and those who don't.
> ---------------------------------------------------------------
>
>
> "David T-G" <davidtg-php@justpickone.org> wrote in message
> news:20031117033050.GT9710@justpickone.org...