GET / POST
| From: | XXXPixie | Date: | Sun, 08 Sep 2002 16:51:56 +0000 |
| Subject: | GET / POST | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-15710@lists.php.net to get a copy of this message | ||
hi! I'm a total newbie to php4 or web design and i (of course) have a
problem:
i'm using apache 2.x and php4 as a module.
so, when i use the GET method to pass data to my php script:
script.php?x=5
i can't access it as a normal global variable:
<?php
print $x;
?>
the only way i can get to it is:
<?php
print _GET['x']
?>
what's wrong?
by the way, what's the difference between GET and POST methods anyway?