Larry,
You might try doing a regular expression to search for an email. Something like:
<?php
$form = "This is filled out -
Name: Larry Boy
Phone: 703-922-4010
Email: larry@skbk.com
This is not filled out-
Name: Larry Boy";
$regex = "/\w*\@\w*\.[[:alpha:]]{2,3}/i";
echo preg_match($regex, $form);
?>
This will print how many times an email address consisting of
some_letters_or_numbers@somemore_letters_or_numbers.2_or_3_letters appears... in this case there is one match (
larry@skbk.com)
Breakdown of regular expression pattern:/ expression /i - denotes that string is a regular expression (trailing "i" means match any case)
\w - match any alphanumeric (A-Z or 0-9) character or underscore (_)
* - look for zero or more of this expression. For example
\w* means look for zero or more alphanumeric characters
[[:alpha:]] - look only for alphabetic characters (no numbers)
{2,3} - look for 2 or 3 of this expression. For example
[[:alpha:]]{2,3} means look for between 2 or 3 letters
If you need more help with regular expressions I'd check out
http://php.net/manual/en/function.preg-match.php-Mike