I forgot to close a line with a semicolon. this: $elements=count($para) should be: $elements=count($para); -- Crash Committed to the search for intraterrestrial intelligence. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php