'; } // 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."

"; }else { $headers = "From: ".$_POST['email1']."\r\n"."X-Mailer: php"; if ( mail("info@professorcloud.com", $_POST['subject'], "FROM: ".$_POST['name']."\n\r".$_POST['message'], $headers) ) { $okMess = "

Thanks! Your message has been sent.
Click here for previous page.

"; $_POST['message'] = ""; }else { } } }else // If not, make a note of the referrer page so we can offer a link back to it later. { $_SESSION['prevPage'] = $_SERVER['HTTP_REFERER']; } ?> startSection('content'); ?>

Contact

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.

Please enter your details and message:
endSection(); require_once('page2.template.php'); echo $templ->renderSection('main'); ?>