Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Registration Validation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Registration Validation

 Post Reply Post Reply
Author
jackbros View Drop Down
Newbie
Newbie


Joined: 10 February 2005
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote jackbros Quote  Post ReplyReply Direct Link To This Post Topic: Registration Validation
    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
Back to Top
Phat View Drop Down
Senior Member
Senior Member


Joined: 23 February 2003
Status: Offline
Points: 386
Post Options Post Options   Thanks (0) Thanks(0)   Quote Phat Quote  Post ReplyReply Direct Link To This Post 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

%>

Back to Top
jackbros View Drop Down
Newbie
Newbie


Joined: 10 February 2005
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote jackbros Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.