Hi SvenVDB,
I think, that your code might work properly, but the script should starting with the line
<?php start_session(); ?>
Session must start at first. Change it and all should be working fine..but I didn't check this script. I looked at the few first line of code. Who added the line on the top?? You,SvenVDB? or it was before..
$your_email ='blabla@hotmail.com';// <<=== update to your email address
This is tag <form> ??:
<table width="100%" border="0" cellpadding="5" cellspacing="0" id="contactformulier">
<tr>
<td colspan="2"><?php
if(!empty($errors)){
echo "<div id='error' class='err'>".nl2br($errors)."</div>";
}
?><div id='contact_form_errorloc' class='err'></div><h1>Contactformulier</h1></td>
</tr>
<tr>
<td align="left" valign="top">Naam:</td>
<td align="left" valign="top"><input type="text" name="name" value='<?php echo htmlentities($name) ?>'></td>
</tr>
<tr>
<td align="left" valign="top">E-mail:</td>
<td align="left" valign="top"><input type="text" name="email" value='<?php echo htmlentities($visitor_email) ?>'></td>
</tr>
<tr>
<td align="left" valign="top">Bericht:</td>
<td align="left" valign="top"><textarea name="message" rows=8 cols=30><?php echo htmlentities($user_message) ?></textarea></td>
</tr>
<tr>
<td align="left" valign="top"> </td>
<td align="left" valign="top"><p><img src="captcha_code_file.php?rand=<?php echo rand(); ?>" id='captchaimg' ><br>
Vul bovenstaande code in:<br>
<input id="6_letters_code" name="6_letters_code" type="text">
<br>
Kan de afbeelding niet lezen? Klik dan <a href="javascript: refreshCaptcha();">hier</a> om te vernieuwen. <br>
</p></td>
</tr>
<tr>
<td align="left" valign="top"> </td>
<td align="left" valign="top"><input type="submit" value="Verzenden" name='submit'></td>
</tr>
</table>
and why this line is in different place than the form and the submit button ??
<form method="post" name="contact_form" enctype="multipart/form-data" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" onsubmit="return validatePage1();">
can't belive that the code was working fine ...this is really wrong code..
and where is closing of tag?
</form>