keiththirgood has asked for the wisdom of the Perl Monks concerning the following question:
I am new to all coding and I have no idea what is wrong here. I have a simple form I'm trying to send cleaned up results from to an email address. This is the error message I received:
syntax error at feedback.cgi line 33, near "print MESSAGE "From"
syntax error at feedback.cgi line 35, near "n\"
syntax error at feedback.cgi line 79, near "}"
Execution of feedback.cgi aborted due to compilation errors.
This is the code near each of those lines:
32 print MESSAGE "To: keith\@wilsonstreetstudio.ca\n”; # Don't forget to escape this @ symbol!
33 print MESSAGE "From: " . $FORM{name} . ", reader\n";
34 print MESSAGE "Reply-to: " . $FORM{email} . "(" . $FORM{name} . ")\n";
35 print MESSAGE "Subject: Feedback from $FORM{name} \n\n";
36 print MESSAGE "$FORM{name} wrote:\n\n";
76 EndHTML
77
78 exit(0);
79 }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: syntax error
by Corion (Patriarch) on May 21, 2017 at 15:46 UTC | |
Re: syntax error
by ww (Archbishop) on May 21, 2017 at 17:52 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |