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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php