>> if (!strpos($t_product,$t_p)) {print "checked";} It could have something to do with the function returning 0 because it's finding the comma in the 0 index, but it's not really false, it's still finding the string. I've run into a similar problem before... Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php