[snip] Dude, when you have a syntax error like this only post 20 or 30 lines of the code surrounding the line and then point out which line is #foo, 'k? Your HEREDOC appears to be messed up. On line 623 the closing identifier is not in first column of the line (when I cut n paste the code into an editor. That is a requirement for the heredoc. [/snip] You also didn't close the PHP block after END_FORM; Then you need to open a PHP block at about line 635 before the if statement. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php