I am new to PHP, coming from ASP coding
if (HTTP_GET_VARS['b']==1){
print "Yes";
}else{
print "No";
}
when "b" is not passed via
(http://www.mydomain.com?b=1
an error occurs and the "NO" is printed but an error is printed too.
How can I check for the value of "b" so that no error occurs if b is
not passed??
example
http=www.mydomain.com
$myvar=HTTP_GET_VARS['b']
causes an error because
"b" does not exist (ie. its not passed in the URL string.
$myvar maybe evaluated as NULL or Empty but the error is printed in
the page, anyway.
thanks