Posted by Peter van Schie on 12/07/05 11:38
mike wrote:
> thanks, so the above code you posted will do the same as this?
>
> if (isset($var)) {
> $var="";
> }
>
> if ($var == "value") {
> do something
> }
Hi Mike,
No I just showed you how to use the $_GET superglobal instead of just $var.
When the setting register_globals=Off then $var won't be available,
$_GET['var'] however will be.
HTH.
Peter.
--
http://www.phpforums.nl
Navigation:
[Reply to this message]
|