Page 1 of 1

true email

Posted: Wed Jul 09, 2003 11:02 am
by medo
how can I create a script to check the existence or less than an email inserted in a form?
thanks to all!

Posted: Wed Jul 09, 2003 11:51 am
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