Re: URL problem

From: Date: Mon, 07 Jul 2003 18:44:58 +0000
Subject: Re: URL problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154219@lists.php.net to get a copy of this message
Sparky Kopetzky wrote:
and intercepting it with:
    if ($_SERVER['QUERY_STRING'] = "") { disp_cat(); }
However, nothing is happening. phpinfo show $_SERVER['QUERY_STRING'] as 'no value', so this should work. Anyone know why this doesn't work??
Yes. You are using an assignment operator where you should be using a comparison operator. Try using == (or ===): if ($_SERVER['QUERY_STRING'] == "") { disp_cat(); } http://us4.php.net/manual/en/language.operators.assignment.php http://us4.php.net/manual/en/language.operators.comparison.php Brad

« previous php.general (#154219) next »