Hi, I've created the following mailscript, but it seems that it doesn't execute the code after my }else{ statement. What on earth could be wrong? I'm really breaking my head over this. I'm sorry that part of the code is written in dutch, but I guess it won't be hard to figure out what everything means. If you could help me, I'd be very gratefull đ. Thanks!
<?php
//sendmail.php by Insension Interactive
include("../includes/common.php");
if (!isset($verzenden)){
echo("
<form name='mailform' method='post' action='emailenglish.php?verzenden=1'>
<p>
<input name='naam' type='text' value='Your name'>
</p>
<p>
<input name='email' type='text' value='Your email adress'>
</p>
<p>
<textarea name='bericht' cols='45' rows='10'>Your message</textarea>
</p>
<p align='left'>
<input type='submit' name='verzend' value='Submit'>
<input type='reset' name='reset' value='Reset'>
</p>
</form>
");
}else{
if ($naam == "" or $naam == "Your name"){
error("Please enter your name");
}
if ($email == "" or $email == "Your email adress"){
error("Please enter your email adress");
}
if ($bericht == "" or $bericht == "Your message"){
error("Please enter your message");
}
$jouwmail = "webmaster@insension.com";
mail("$jouwmail", "$onderwerp", "$bericht", "From: $naam<$email>\nReturn-path: $email");
echo("We have succesfully recieved your email and will try to answer you as soon as possible");
}
?>