Hey guys, I was wondering if any of you had some good scripts for a simple contact form that looks good. I would like something like this. http://www.fbardiaphotography.com/contact.php I would also like a little spam protector if that's possible. Any suggestions? Any help is appreciated. Thank you in advance.
That contact form is horrible. Why not make one yourself? It's very simple to pass variables through a form something like: contact.php <form method="post" action="contactus.php"> <label>Name</label> <input type="text" name="name"><br /> <label>Email</label> <input type="text" name="email"><br /><br /> <textarea name="message">Type your message here...</textarea> <input type="submit" value="Submit" name="submit"> </form> HTML: contactus.php <?php //Post variables $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $ip = $_POST['ip']; //Send message to administrator $to = "yourname@yourdomain.com"; $subject = "Website Contact Form"; $message = "This email was generated from yourdomain.com. \n\n Name: $name \n\n Email Address: $email \n\n Message: \n $message \n\n Just in case I'm a **** I've kindly provided you with my IP address: $ip"; $from = "$name"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); header('Location: contact.php?message=success'); ?> PHP: And add your css to the form. As for spam protection, I did carry out some research on preventing spam and the general consensus was that spam protection could put off genuine users from using your contact form. This could be for a number of reasons, mathematics for example even 1+1, in this day in age you never know... they may not know! Typing a word, what if they're dyslexic? From the research I carried out, I found that simply displaying their IP address would be enough to put off most spammers and only use CAPTCHAS as a last resort such as if you are on a list for spammers to target your website.
Thanks for the help man. The reason I didn't make one myself is because I'm pretty new to all this stuff. But all I would have to do is copy this code and place it in my site where I want it to be?
As far as spam protection, define "spam". If you mean what gets to your mailbox, use POPFile. You control spam on the receiving end.