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!! :)

Subject Author Views Date
Thread Reg Expressions in Signup eric74 2922 Jul 20, 2001, 3:57 AM
Post Re: Reg Expressions in Signup
Paul 2827 Jul 20, 2001, 5:20 AM
Post Re: Reg Expressions in Signup
eric74 2816 Jul 20, 2001, 2:13 PM