#!/usr/bin/perl # # postguestbook.pl v0.0.5 - Submit data to guestbook # Copyright (C) 2009, 2010, 2011 Stian Skjæveland # # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. # use CGI qw(:standard); use strict; print header; print qq(
Back to previous page."; if (!($param_name)) { print "
ERROR: You need yo add your name!"; } if (!($param_message)) { print "
ERROR: You need yo add your message!"; } if (!($param_keyword)) { print "
ERROR: You need yo add your keyword!"; } if ($param_keyword ne "fifty") { print "
ERROR: Wrong keyword! DID YOU TYPE WITH LOWERCASE CHARACTERS IN ENGLISH?
";
exit(0);
}
if ($param_name && $param_message && $param_keyword) {
open(GUESTBOOK, ">>$file") || print "error: $!";
@filelines=
Copyright (C) 2009, 2010, 2011 Stian Skjæveland.
Verbatim copying and redistribution of this entire page are
permitted provided this notice is preserved.