in reply to Faulty Script

The main problem is that you haven't used CGI (documentation can be found online here). See ovid's CGI Course for more help.

p.s. The answer to your question is that you missed a ';' off the previous line:

$date = "$mday\/$month\/$year1"

gav^