Server Side Form Validation using Regular Expressions

| Last Updated: | In: PHP Tutorial


We are always using the JavaScript validation for form validation inour practice,but in some way many user’s disabled the javascript in his browser in such cases we strongly recomended the Server Side Form Validation. In this post i will describe the easy and simple code for Server Side Form Validation using Regular Expressions.

validation.php
Contains PHP code. eregi — Case insensitive regular expression match.

index.php
Contains HTML code. You have to include validation.php file.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:


, ,