Re: newbie question regarding URL parameters
| From: | Nicholas Yim | Date: | Sat, 06 Jan 2007 02:10:29 +0000 |
| Subject: | Re: newbie question regarding URL parameters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246667@lists.php.net to get a copy of this message | ||
Hello Jim the Standing Bear,
register_global
try use
$name=$_GET['name'];
$age=$_GET['age'];
Best regards,
======= At 2007-01-06, 10:05:40 you wrote: =======
>Hello,
>
>I have a newbie question regarding URL parameters. The PHP script I
>wrote need to read parameters passed in from a URL, so as an example
>
>http://my.domain/myscript.php?name=me&age=27
>
>and my script would use $name to get the value for name and $age to
>get the value for age.
>
>Everything was working fine until the sysadmin did a upgrade of the
>PHP server, and $name and $age both give me nothing.
>
>I am just wondering if the latest version of PHP has changed the way
>to access url parameters. If so, what would be the correct way of
>doing it? Please help. Thanks.
>
>- Jim
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
= = = = = = = = = = = = = = = = = = = =
Nicholas Yim
nick.yim@taowap.com
2007-01-06