Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Birthdate required for registration
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Birthdate required for registration

 Post Reply Post Reply
Author
Pierse View Drop Down
Newbie
Newbie
Avatar

Joined: 10 September 2003
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pierse Quote  Post ReplyReply Direct Link To This Post Topic: Birthdate required for registration
    Posted: 26 August 2004 at 5:28pm
How would I go about making the birthdate field in the registration process required?
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 27 August 2004 at 2:10pm
where the javascript form validation is done in the register.asp file.

in the section you need to add a extra section/specification that makes sure the value of the birdate fields aren't empty ..

if ((document.frmRegister.Day Date field name.value = "") || (document.frmRegisterMonth Date field name.value = "") ||
(document.frmRegisterYear Date field name.value = ""))

{
msg += "please enter yor date of birth"

}


Please note the above code is not correct but to give you an idea of the coding for it. dont forgot that it needs to be entered in the section so that it is only called when registering, or editing the profile with all fields shown .. or just profile information.
Back to Top
Pierse View Drop Down
Newbie
Newbie
Avatar

Joined: 10 September 2003
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pierse Quote  Post ReplyReply Direct Link To This Post Posted: 03 September 2004 at 8:09am
I am totally not an ASP person. If someone could give me the code I would greatly appreciate... I have looked everywhere on the net for something that works and no code works. I have asked and done as people have suggested just as you have above. Any ideas how I can get it to work? I have been putting it in the checkform area of the register.asp however when I register a test person, it still doesn't require the birthdate... any help would be greatly appreciated. Thanks!
Back to Top
Pierse View Drop Down
Newbie
Newbie
Avatar

Joined: 10 September 2003
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pierse Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2004 at 11:17pm
anyone given any more thought on how to make the birthdate field required?
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2004 at 5:34am
That's so easy it hurts not doing it. What's the version and DB of your forums?
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.