PDA

View Full Version : Guestbook possible error in coding?


McDuff
01-03-2007, 09:32 AM
When installing and adapting the included guestbook on our site www.czechfriends.org, it would not include the comments of the guest in the email to us.

Finally found the section in the guest.cgi file which seems to be the problem, at least for me. (I included two more lines of code, since it makes quicly clear where in the file the error (?) is located).
....
if ($INPUT{'comments'})
{print MAIL ("$mailcomments\n");:dunno:
}
print MAIL ("-$date\n");
close (MAIL);

# Send info to visitor
....
if in "$mailcomments\n" I delete the MAIL so it looks like
print MAIL ("$INPUT{'comments'}\n"); :clapper:
it works properly for me.