Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 How to allow only certain domain in email address?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hstraf
Starting Member

4 Posts

Posted - 30 October 2002 :  19:19:05  Show Profile
I am using Snitz in an intranet and would like to ONLY allow people who use one of our company domain names in their email address to register. All other email addresses should result in an error message.

I have the following pseudo-code added to the register.asp page on line #289:

if (EmailField(Reguest.Form("Email")) <> "allowed1.com") AND (EmailField(Reguest.Form("Email")) <> "allowed2.com") then
     Err_Msg = Err_Msg & "<li>You MUST use a valid domain name in your email address.</li>"
end if


Can anyone help me out with the ASP to do this?

Edited by - ruirib on 30 October 2002 19:26:02

@tomic
Senior Member

USA
1790 Posts

Posted - 30 October 2002 :  21:03:56  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Email = Emailfield(Request.Form("Email")
If instr(Email,"Mydomaintolookfor") = 0 then
Err_Msg etc

@tomic

SportsBettingAcumen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07