';
}
// Valid email?
if ( !checkEmail($_POST['email1']) )
{
$errorMess.= 'Please enter a valid email address.
';
}
// Same confirmation email?
if ( strcmp( $_POST['email1'], $_POST['email2'] ) )
{
$errorMess.= 'Email and confirmation email do not match.
';
}
// Subject ?
if ( strlen($_POST['subject']) <4 )
{
$errorMess.= 'Please enter a valid subject.
';
}
// Message ?
if ( strlen($_POST['message']) <4 )
{
$errorMess.= 'Please enter a valid message.
';
}
if (strlen($errorMess)>0)
{
$errorMess = "
There were some errors:
" . $errorMess."
Thanks! Your message has been sent.
Click here for previous page.
Some of my plugins have become quite popular, and I often receive support requests. My day job takes priority, but I try and look at plugin issues during my own free time.
Making sure your HTML is well formed with a valid doc type can often fix things. Much as I'd like to help, I don't have the time to examine pages of HTML. If you are having problems, try and get the plugin working in a very simple page. The problem may remain, or it may dissapear; either way, it's much easier for you (or me) to identify the issue by doing this.
$templ->endSection(); require_once('page2.template.php'); echo $templ->renderSection('main'); ?>