Brian Ross wrote:

> When I installed Apache 1 and PHP together in Windows and setup everything
> correctly. The script.php?variable=value way of posting to the PHP script
> will not work. I had this problem once before but it was over a year ago
> and I forgot how I fixed it. Please help if you can.

With register_globals turned off (default since PHP 4.2.0 and for good
reason) you just reference the variable as part of the $_GET array:

        $_GET['id'] instead of $id

http://www.php.net/manual/en/language.variables.predefined.php

Never, EVER turn register_globals on.  That is, unless you want your web
application stomped and ground into vegemite by all the CSS attacks out
there today.  That's as bad as setting up SQL Server and leaving the sa
account at default.  *gasp!*

HTH,

-- Mitch

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

Reply via email to