if(!valid_email($email)){ echo '<div class=\'error\'>Email is not valid.</div>'; include ('templates/'.$template.'/footer.php'); exit; }
if($_POST['pass_word'].value != $_POST['pass_word2'].value) { echo '<div class=\'error\'>Your Password does not match.</div>'; include ('templates/'.$template.'/footer.php'); exit; }
function writebody() {global $db, ....... etc;
if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) { unset($_SESSION['security_code']); } else { echo '<div class=\'error\'>Sorry, you have provided an invalid security code.</div>'; exit; }
$message = clean($_POST['message']);
$security_code = clean($_POST['security_code']);
if(!$sender || !$message){
if(!$sender || !$security_code || !$message){
Your Message:<br><textarea name=\'message\' rows=\'10\' cols=\'50\' ></textarea><p>
Security Code: <img align="absmiddle" src="../CaptchaSecurityImages.php?width=100&height=40&characters=5" /><input id=\'security_code\' type=\'text\' name=\'security_code\' size=\'25\'><p>
$answer = clean($_POST['answer']);
if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) { unset($_SESSION['security_code']); } else { echo '<div class=\'error\'>Sorry, you have provided an invalid security code.</div>'; include ('templates/'.$template.'/footer.php'); exit; }
<tr> <td class=\'content\'>Answer:*<br><small>If you forgot your password!</small></td> <td class=\'content\'><input type=\'text\' name=\'answer\' size=\'40\'></td> </tr>
<tr> <td class=\'content\'><small> AntiSpam Code*</small><br /> <img src="../CaptchaSecurityImages.php?width=100&height=40&characters=5" /> </td> <td class=\'content\'><input id=\'security_code\' name=\'security_code\' type=\'text\' size=\'30\'></td> </tr>