Posted by mike on 12/07/05 18:12
"Peter van Schie" <vanschie.peter@gmail.com> wrote in message
news:4396ae20$0$11062$e4fe514c@news.xs4all.nl...
> 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.
I've used $_GET[var] now but it noes gives an undefined_index error!
[Back to original message]
|