Hi, a general thought at first. When posting a rahter long sxrpit it would be helpful to mark the lines which produce the errors. But now straight to the point. change the inside of your if/elseif parethesis from just the variable to (isset($variable)) respectively to (! isset($variable)). hope it helps Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]