<?
require("conf.php3");
?>
<html>
<head>
<title><? echo $title ?></title>
<link rel="stylesheet" type="text/css" href="stylez.css">
</head>
<body>
<table width="580" border=0 cellspacing=0 cellpadding=1>
<tr><td class="MainTD">
<table width="100%" border=0 cellspacing=0 cellpadding=3>
<tr>
<td class="HeaderText"><? echo $maintxt ?></td>
<tr>
<td class="NormalText">
<?php
if ($send == "ok") {
if ($naam == "") {
$ok = "false";
$era = "<font class=\"Error\"> $noname</font>\n";
}
if ($from == "") {
$ok = "false";
$erb = "<font class=\"Error\"> $nomail</font>\n";
}
if ($from != "") {
if (!eregi( "^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $from)) {
$erb = "<font class=\"Error\"> $wrongmail</font>\n";
$ok = "false";
}
}
if ($bericht == ""){
$ok= "false";
$erc = "<font class=\"Error\"> $nomessage</font>\n";
}
if ($ok != "false"){
mail("$email", "$onderwerp","$bericht\n\n---------\nCame from host: $REMOTE_HOST\nIP Adress: $REMOTE_ADDR", "From: $naam <$from>\nReply-To: $naam <$from>\nX-Mailer: Script made by Ate Bontjer
www.monstar.nl\nSender: $naam <$from>");
echo "$thankz\n";
}
elseif ($ok == "false") {
?>
<form method="POST" action="<? echo $PHP_SELF ?>">
<? echo $name.": ".$era ?><br>
<input type="text" name="naam" size="27" value="<? echo $naam ?>"><br>
<? echo $emailadress.": ".$erb ?><br>
<input type="text" name="from" size="27" value="<? echo $from ?>"><br>
<? echo $saywhat.": ".$erc ?><br>
<textarea rows="10" name="bericht" cols="40"><? echo $bericht ?></textarea><br>
<input type="hidden" name="send" value="ok">
<input type="submit" value="Send">
<input type="reset" value="Empty fields">
</form>
<?
}
}
else {
?>
<form method="POST" action="<? echo $PHP_SELF ?>">
<? echo $name ?>:<br>
<input type="text" name="naam" size="27"><br>
<? echo $emailadress ?>:<br>
<input type="text" name="from" size="27"><br>
<? echo $saywhat ?>:<br>
<textarea rows="10" name="bericht" cols="40"></textarea><br>
<input type="hidden" name="send" value="ok">
<input type="submit" value="Send">
<input type="reset" value="Empty fields">
</form>
<?
}
?>
</td></tr></table></td></tr></table><font>© <a href="http://www.monstar.nl" target="_blank">Monstar.nl</a></font>
</body>
</html>
wil je conf.php3 ook nog?