Gossamer Forum
Home : Products : DBMan : Discussions :

Reg Expressions in Signup

Quote Reply
Reg Expressions in Signup
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!! :)

Quote Reply
Re: Reg Expressions in Signup In reply to
unless ($in{'email'} =~ /.+@usa\.net/i) {

Installations:http://www.wiredon.net/gt/

Quote Reply
Re: Reg Expressions in Signup In reply to
Exactly! Thanks!! :)