2010-09-30, 00:23:53
I have made a modification you may be interested in. I have added the success class to the message result after the form is submitted. (Previously only the error message had the class applied)
Code:
//results
if ($result=='1') {
echo '<p class="contactmsg success">'.$MSG_CONTACTSUC.'<br /><br /></p>';
} else {
echo '<p class="contactmsg error">'.$MSG_CONTACTERR.'</p>';
}
} else {
if (trim($err) !=''){
echo '<p class="contactmsg error">'.$err.'.<br />Captcha code: '.$pot.'<br / >Code wrote: '.$_POST['contact']['pot'].'</p>';
}
else {
echo '<font color="red">*** Required fields empty ***</font>';
}
}
}