Print Page | Close Window

Registration Validation

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=13954
Printed Date: 12 April 2026 at 6:11am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Registration Validation
Posted By: jackbros
Subject: Registration Validation
Date Posted: 22 February 2005 at 5:06pm

Hi there,

I have added another field to the database as well as to the form.
 
I want to have another validation inserted so that two fields match, much like the password matching validation. Trouble is, when I insert this, it fails to validate. I am puzzled
 
How do I have two input boxes with email addresses and have a script validate their domains to make sure they match. The email address before the @ can be different but not the domain.
 
Would be grateful if someone could help
 
Many thanks
Jack



Replies:
Posted By: Phat
Date Posted: 22 February 2005 at 6:52pm
Try this


<%

Dim strEmail1
Dim stremail2

strEmail1 = "test@domain.com"
stremail2 = "blah@domain.com"


If Split(strEmail1, "@")(1) = Split(stremail2, "@")(1) Then
    Response.write("Match")
Else
    Response.Write("No Match")
End If

%>



Posted By: jackbros
Date Posted: 22 February 2005 at 7:57pm
Hi Phat,
 
Nice script, unfortunately it does not correllate with the register.asp form as I want it to tie into its validation CheckForm() script rather than have two different procedures.
 
Any solutions?
 
Jack
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net