true email

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
medo
Forum Newbie
Posts: 1
Joined: Wed Jul 09, 2003 11:02 am

true email

Post by medo »

how can I create a script to check the existence or less than an email inserted in a form?
thanks to all!
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

to see if a variable holds anything:
preg_match('/.+/', $string)

if it's a 1 then something was entered. like in most languages, 1 == true when doing an if check
Post Reply