Here is a PHP contact us script. Contact.php file is a wrapper around contact-us.php file. You can add a working contact us form in any page of your site by just including contact-us.php at appropriate place. Here's a working demo.
secure images are so tedious for the users - you can protect a form via js by dynamically building the submit handler / events and setting the action/target.
downside to that approach is that you need to have JS enabled to use the form - for my money - worth it. you should be doing your form validation in javascript anyway (even if the PHP script has a fallback)
firstly thats a cool little script, very clear on what your clean and tainted data is etc
im a believer in defence in-depth, if your going to validate in JS you MUST still validate in php, validation in JS is a cool idea as you can make sure the data sent to your servers are maybe as you expected... but all you have todo is use httpliveheaders to figure out the names of the form vars placed by the js and then hard code a form or just send a modifyed http request via the httpliveheaders tool... effetivley bypassing your JS validation... not cool
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Attention: "role based name" email prefixes such as support, webmaster, info, contact, forum, service, affiliate, admin, traffic, partners, marketing, etc., for our member accounts are not permitted. They are acceptable for a vendor listing, but not for the member email. This is due to bulk email processors scrubbing them for delivery due to extremely high bounce rates. Please apply for membership using a personalized email prefix. Something like bob@xxxxx.com.
If we discover you signed up with a role based name we will give you only one message to change it. After 3 days your account will be removed if the email is not changed.