Posted by Anonymous on 11/14/05 01:34
will.lai@gmail.com wrote:
>
> Hi: Just learning PHP and couldn't get access to the $_POST variables
> from a form. Here are my code sniplets below. For the life of me I
> can't figure out why the POST variables aren't being passed. FYI, if I
> switch the method to GET and the $_GET variable works great.
I couldn't see anything wrong with the code, so I just tried it out to
see what the server says:
4.4.1
$_POST:
array(1) { ["email"]=> string(17) "test@test.invalid" }
$_GET:
array(0) { }
$_REQUEST:
array(1) { ["email"]=> string(17) "test@test.invalid" }
Actually just what I expected. The problem must be in your server or PHP
configuration.
Navigation:
[Reply to this message]
|