Birthdate required for registration
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=11640
Printed Date: 09 April 2026 at 12:59am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Birthdate required for registration
Posted By: Pierse
Subject: Birthdate required for registration
Date Posted: 26 August 2004 at 5:28pm
|
How would I go about making the birthdate field in the registration process required?
|
Replies:
Posted By: dj air
Date 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.
|
Posted By: Pierse
Date 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!
|
Posted By: Pierse
Date Posted: 07 September 2004 at 11:17pm
|
anyone given any more thought on how to make the birthdate field required?
|
Posted By: theSCIENTIST
Date 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?
|
|