Hi,
I have a product for download operation, so I want to deny using any free email addresses for order delivery.
I have a table (free_email) which will contain entries like: hotmail, yahoo, etc., without the .com or whatever.
When someone submits a form, I want to check their email address against this free_email table and deny all free email addresses on my list.
Something like this in reverse would work (free_email is both the name of the field and the table):
$sql = "SELECT * FROM free_email WHERE free_email Like '%$email%'";
This would be great if the table contained username@hotmail.com and they entered hotmail in the form.
How would I make it so they enter username@hotmail.com, it checks the free_email table and sees the word hotmail, which I could then reject?
Thank you,
Mark