silvers
Members
-
Joined
-
Last visited
Reputation Activity
-
silvers reacted to webdeveloper93 in My secure contact script v1.5Well before i continued anymore on my script i thought i would get the community to test it out its a form mailer called Rizo contact form mailer v1.5 its very useable now except i have not finished all the features all though i will list a few features below.
1.Known robot blocker
2.Header/javascript injection protection
3.Bad word blocker
4.Changeable settings from settings file
5.Spam word filter
6.Basic captcha and recaptcha
7.Easy to edit language pack
8.Ip address blocker
9.And more that i won't list currently
EDIT:Please note i've included both recaptcha keys private and public for you to be able to test recaptcha these keys will only work on localhost so be sure to sign up for your own keys once you put the contact form online you may change these keys to your own keys in the settings.php file
Anyways just test it out and let me know what u think or what i need to fix, to use the form just fill in your mailing info in settings.php cheers if you like my work feel free to give me a +1
Rizo Contact v1.5.zip
-
silvers reacted to webdeveloper93 in My secure contact script v1.5Thanks
EDIT: I will keep you updated with any changes or updates on the script through this post
-
silvers reacted to webdeveloper93 in this contact form is ALMOST WORKING!<?php $submit = (isset($_POST['submit'])) ? TRUE : FALSE; if(!$submit){ exit("You have not submmitted the form please go back!"); }else{ $name = (isset($_POST['name'])) ? $_POST['name'] : FALSE; $email = (isset($_POST['email'])) ? $_POST['email'] : FALSE; $email_check = "/\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i"; $errors = array(); if(!$name){ $errors[] = "Please enter your name!"; } if(!$email){ $errors[] = "Please enter your email"; } if($email){ if(!preg_match($email_check,$email)){ $errors[] = "The email you entered is not valid!"; } } if(count($errors) > 0){ foreach($errors AS $error){ echo "$error <br />"; } }else{ $to = "Youremail@youremail.com"; $subject = "Your subject"; $email_content = " Name: ".$name."\n\n E-mail: ".$email." "; $header = "From: <$to>"; if($mail = mail($to,$subject,$email_content,$header)){ echo "Email has been sent thank you!"; }else{ echo "Could not send email!"; } } } ?>
Ok there you go should work not tested yet if you have probs let me know
You may also try my more secure contact form here if you like cheers
Rizo Contact Form Mailer v1.5
-
silvers reacted to webdeveloper93 in this contact form is ALMOST WORKING!try changeing this line
if(@mail($your_email,$email_subject,$email_content))
to
if($mail = mail($your_email,$email_subject,$email_content,"From: <youremail@yourdomain.com>"))
-
silvers reacted to webdeveloper93 in this contact form is ALMOST WORKING!Yea try removing that or check your spam folder see if its going there
-
silvers reacted to webdeveloper93 in this contact form is ALMOST WORKING!Yea sure bro just do a variable for each field of ur form. like for a email and name field you would do
$name = (isset($_POST['name'])) ? $_POST['name'] : FALSE; $email = (isset($_POST['email'])) ? $_POST['email'] : FALSE;
And then in your message that you send to your email you would do this
$email_content = "Name: ".$name.""; $email_content .= "Email: ".$email."";
Hope this helped if it did +1 me if you like cheers