check for leading/trailing spaces if (trim($view) == "vendor")
HTH Martin -----Original Message----- From: Peter Gumbrell [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:07 PM To: Php-General Subject: [PHP] problems with ==? In the following code $view = $HTTP_GET_VARS[view]; print $view; if ($view == "vendor") { code here } print $view produces 'vendor' but the if statement in the next section isn't being triggered. Can anyone see what is wrong here? I have tried double quotes, single quotes and no quotes around 'vendor' but none of them work. Thanks Peter Gumbrell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php