Posts Tagged ‘php form’

PHP Form Data Validation Tips

February 7th, 2011 Leave a comment 2 comments
PHP Form Data Validation Tips

A common web task in web application development is to validate data input by a user. This is usually done to ensure that the type of data entered matches the expected data types for an underlying database. It is also a good security practice to limit the data that a web based form will accept. While it is common in web 2.0 applications to use client side code such as Javascript to validate form fields, this should not be relied on for a number of reasons. Some users disable Javascript so you want to provide a working… View full post »

PHP Contact Form Tutorial

May 25th, 2010 Leave a comment 3 comments
PHP Contact Form Tutorial

Many web sites are opting to use a contact form to allow its visitors to communicate. This is larger due to the prevalence of spam bots which harvest email addresses from web sites. In this tutorial, we’re going to build a simple contact form in PHP. This is going to be a pretty simple contact form. We’ll be using a single PHP file to display the form and to process it. This simplifies things quite a bit. Ready? Let’s get started. Step One: Creating the Form The first step is to create some HTML markup for our… View full post »