regarding php validations script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
raksab
Forum Newbie
Posts: 4
Joined: Sun Jul 13, 2008 11:21 pm

regarding php validations script

Post by raksab »

hi guys
i need php valdiations for the following things
i have little bit idea about them

phone number with areacode
mobile number
gender
email
password and confirm password


with regards
theboss 8)
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Re: regarding php validations script

Post by Burrito »

are you asking for help on how to accomplish this or asking someone to do it for you? If the latter, please post in volunteer work or job hunt.
amitshah
Forum Newbie
Posts: 1
Joined: Thu Jan 22, 2009 1:05 am
Location: Ahmedabad

Re: regarding php validations script

Post by amitshah »

Here is the basic email validation.

Code: Select all

if(eregi("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$]", $email)) 
   {
      return FALSE;
   }
Check below link for phone number validation with areacode.
http://www.coderemix.com/tutorials/php- ... validation

Rest you can do by yourself..
Post Reply