http://www.bonfire-m.../Guestbook.html
And below is the php code.
<?
// +----------------------------------------------------------------------+
// | inPHormer form parse |
// | Built with inPHormer 1.03 |
// +----------------------------------------------------------------------+
// | Copyright © 2002 Shift srl |
// | http://www.shift.it |
// +----------------------------------------------------------------------+
$inPHormer_msg = "name: $name\nemail: $email\ncomment: $comment\nsubmit: $submit\nreset: $reset\n";
$inPHormer_err = "";
$inPHormer_ok = "http://www.bonfire-m...uestbook.html";
$inPHormer_subj = "Info from your Site";
$inPHormer_mailTo = "[email protected]";
$inPHormer_headSend = "From: inPHormer<$reset>\n";
$inPHormer_headSend .= "Reply-To: $reset\n\n";
if (!$name || !$comment || !$submit || !$reset) {
header("Location: $inPHormer_err");
exit;
} else {
if (ereg("^([0-9,a-z,A-Z]+)([.,_,-]([0-9,a-z,A-Z,]+))*([_,-])?[@]([0-9,a-z,A-Z]{3,})([_\,-]([0-9,a-z,A-Z]+))*[.]([0-9,a-z,A-Z]){2,3}([.]([0-9,a-z,A-Z]){2,3})?$", $reset)){
mail($inPHormer_mailTo, $inPHormer_subj, $inPHormer_msg, $inPHormer_headSend);
$a = fopen("Guestbook.html", "a+");
fputs($a, "$name;$email;$comment;$submit;$reset\n");
fclose($a);
header("Location: $inPHormer_ok");
} else {
header("Location: $inPHormer_err");
exit;
}
}
?>