In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Peter) wrote:

> for example
>  if ($email =="")
> 
> checks if the $email variable was inputted by the user.

Better: if(!empty($email))
<http://php.net/empty>

> However I was wondering how can I refine it so that it will also check if
> the $email variable contains an '@' sign?

<http://php.net/strstr>

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to