I would appreciate some help. Its pretty simple for someone who knows PHP really well.
People are entering false emails on a form. The PHP variable for the email they submit is '$submit_by'
Before it is entered into the MYSQL database, I need PHP to qualify it does not have a ## @ gmail.com at the end of it.
is a number from 00 to 99
I was looking through arrays, regex and preg_match.
Thee fact that the number entered (##) could be anywhere from 00 to 99,
combined with the fact that it the query will look at the end of the field threw me off.
$submit_by='phpbuilder @ gmail.com' would not get flagged
$submit_by='phpbuilder1 @ gmail.com' would not get flagged
$submit_by='randomuser44 @ phpbuilder.com' would not get flagged
but.....
$submit_by='phpbuilder67 @ gmail.com' would get flagged.
Any help here.....please!
Marc