in reply to CGI, Newlines, and If Statements
(Misreading of your code deleted)
Brief comment: If you don't indent your code, typos that lead to scope errors will be easily missed. Or misread.