|
Posted by mike on 12/07/05 01:11
"Peter van Schie" <vanschie.peter@gmail.com> wrote in message
news:4396172f$0$53875$dbd43001@news.wanadoo.nl...
> Hi Mike,
>
> Try
> if ($_GET['var'] == "value")
> {
> // do something
> }
>
> In php.ini the setting register_globals is set to Off by default as of PHP
> version 4.2 (if I remember correctly).
thanks, so the above code you posted will do the same as this?
if (isset($var)) {
$var="";
}
if ($var == "value") {
do something
}
Navigation:
[Reply to this message]
|