On Thursday, July 4, 2002, at 05:59  PM, Alex P. wrote:

> Hi all, I'm a newbie to PHP. When I installed PHP 4.2 and apache 1.3 
> onto my
> computer, it all worked. I can generate web pages and all that, but 
> when I
> tri to pass a parameter through the URL to the PHP script, it doesn't 
> work.
> Their are no error messages it just does go through.

How are you checking for the value?

If your url is something like 
http://yoursite.com/yourscript.php?yourvariable=value

then in yourscript.php you should be able to access the yourvariable 
value through the
auto-global GET array like this: $_GET['yourvariable']

So you could say
print("yourvariable: " . $_GET['yourvariable'] . "<br>\n");

PHP doesn't automatically create a global variable $yourvariable for you 
anymore unless you turn register_globals on.


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to