Please enter your name"; } if (strlen($name)!=0 and !preg_match("/^[a-zA-Z ]*$/",$name)) { $error.= "
Only letters and white space allowed. Please enter your name again"; } if(strlen($email)==0){ $error.="
Please enter your email"; } if (strlen($email)!=0 AND !filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) { $error .="
please enter a valid email address"; } if(strlen($phone)!=0 and strlen($phone)!=10){ $error.="
Please enter a valid phone number "; } if(strlen($websiteurl)!=0 and !preg_match("@^(http\:\/\/|https\:\/\/)?([a-z0-9][a-z0-9\-]*\.)+[a-z0-9][a-z0-9\-]*$@i",$websiteurl)) { $error .= "
Invalid URL"; } if($error){ $result ='
There were errors in your form:'.$error.'
'; echo $result; } else{ if (mail("","E&S", "Name: ".$name." Email: ".$email." Phone: ".$phone." Organization:".$organization." Website URL:". $websiteurl." Comments:".$comments)){ $result ='
Thank you for showing interest.We will get back to you
'; echo $result; $name=""; $email=""; $phone=""; $organization=""; $websiteurl=""; $comments=""; } else{ $result ='
There was an error sending message :please try again later
'; echo $result; } } } ?> Contact E+S

Edwards + Strunk, Inc.

Ensuring Nonprofit Success

Contact us

Paul J. Strunk, M.A.
3 Cross Drive
Scarton, PA 18505
Cell Direct: 570-561-8187
Email Direct:

Kevin M. Edwards, M.M., M.A., CFRE
Cell Direct: 570-357-4911
Email Direct:

Contact Form