> trim($ulist[1]); You mean: $ulist[1] = trim($ulist[1]); Trim() returns a modifies copy of the string. It does not alter the original. A lot of the string functions work like that.
Luke Welling -- PHP and MySQL Web Development by Luke Welling and Laura Thomson http://www.amazon.com/exec/obidos/ASIN/0672317842/tangledwebdesign -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php