In db.cgi:
unless ($in{'email'} =~ /.+\@.+\..+/) {
$message = "Incorrect email address: '$in{'email'}'. ";
I want to change this so that I only accept email addresses with a certain domain, for instance only @usa.net addresses. I need to change the ($in{'email'} =~ /.+\@.+\..+/) line for this, but not sure what to.
Can anyone please help?
Thanks!! :)
unless ($in{'email'} =~ /.+\@.+\..+/) {
$message = "Incorrect email address: '$in{'email'}'. ";
I want to change this so that I only accept email addresses with a certain domain, for instance only @usa.net addresses. I need to change the ($in{'email'} =~ /.+\@.+\..+/) line for this, but not sure what to.
Can anyone please help?
Thanks!! :)