HTML interesse |
|
hallo,
Heb een kort mail formpje 1 probleem hij zegt wel dat ie hem verzonden heeft maar ik ontvang niks,
de code
<?php
$ip = $_SERVER[REMOTE_ADDR];
$email = "----------------@---------.----";
if ($submit) {
if ($bericht=="" or $naam=="" or $mail=="" or $onderwerp=="") {
echo "please fill all the forms in";
} else {
if (!preg_match('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_`{|}~]+@([-0-9A-Z]+\.)+([0-9A-Z]){2,4}$/i', $mail))
{ echo "wrong mail adres, message have not been send";
} else {
mail("$email", "$onderwerp", "$bericht \n <$mail> From:\"$naam\" \n Ip:\"$ip\" <$mail>");
echo "message have been send, thank you !!";
} } } else {
?>
<html>
<head>
<title>contact [beta]</title>
<style>
body {
scrollbar-highlight-color: #ffffff;
scrollbar-shadow-color: #999;
scrollbar-3dlight-color: #999;
scrollbar-arrow-color: #999;
scrollbar-darkshadow-color: #ffffff;
scrollbar-base-color: #ffffff
}
table.contact {
border: 1px;
border-color: #999;
border-style: solid;
font:x-small tahoma;
}
input, textarea, select {
border: 1px;
border-color: #999;
border-style: solid;
font:x-small tahoma;
}
</style>
</head>
<body>
<form method="post" action="<? $PHP_SELF ?>">
<table class="contact">
<tr>
<td>name:</td><td><input type="text" name="naam" size="30"></td>
</tr>
<tr>
<td>e-mail:</td><td><input type="text" name="mail" size="30"></td>
</tr>
<tr>
<td>subject:</td><td><input type="text" name="onderwerp" size="30"></td>
</tr>
<tr>
<td valign="top">message:</td><td><textarea cols="30" rows="8" name="bericht"></textarea></td>
</tr>
<tr>
<td></td><td align="center"><input type="submit" name="submit" value="Verstuur" > <input type="reset" value="opnieuw"></td>
</tr>
</form>
</table>
<?php
}
?>
</body>
</html>
<?php $ip = $_SERVER[REMOTE_ADDR]; $email = "----------------@---------.----"; if ($submit) { if ($bericht=="" or $naam=="" or $mail=="" or $onderwerp=="") { echo "please fill all the forms in"; } else { if (!preg_match('/^[-!#$%&\'*+\\ .\ /0-9=?A -Z^_` {|}~ ]+@([-0-9A -Z ]+\ .)+([0-9A -Z ]){2,4}$ /i ', $mail)) { echo "wrong mail adres, message have not been send"; } else { mail("$email", "$onderwerp", "$bericht \n <$mail> From:\"$naam\" \n Ip:\"$ip\" <$mail>"); echo "message have been send, thank you !!"; } } } else { ?> <html> <head> <title>contact [beta]</title> <style> body { scrollbar-highlight-color: #ffffff; scrollbar-shadow-color: #999; scrollbar-3dlight-color: #999; scrollbar-arrow-color: #999; scrollbar-darkshadow-color: #ffffff; scrollbar-base-color: #ffffff } table.contact { border: 1px; border-color: #999; border-style: solid; font:x-small tahoma; } input, textarea, select { border: 1px; border-color: #999; border-style: solid; font:x-small tahoma; } </style> </head> <body> <form method="post" action="<? $PHP_SELF ?>"> <table class="contact"> <tr> <td>name:</td><td><input type="text" name="naam" size="30"></td> </tr> <tr> <td>e-mail:</td><td><input type="text" name="mail" size="30"></td> </tr> <tr> <td>subject:</td><td><input type="text" name="onderwerp" size="30"></td> </tr> <tr> <td valign="top">message:</td><td><textarea cols="30" rows="8" name="bericht"></textarea></td> </tr> <tr> <td></td><td align="center"><input type="submit" name="submit" value="Verstuur" > <input type="reset" value="opnieuw"></td> </tr> </form> </table> <?php } ?> </body> </html>
wat is er niet goed ?
mvg, gerben
|