Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6766789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:52:24+00:00 2026-05-26T14:52:24+00:00

I’m not a script writer so I’m a bit handicapped when it comes to

  • 0

I’m not a script writer so I’m a bit handicapped when it comes to getting this stuff to work, but basically I have an existing validation script for a registration form that I am attempting to add an input to with a validation for a specific year range (1946-1964). Currently if you do not correctly enter the form questions a dialog box pops up with a message indicating you didn’t fill in the field correctly.

<script type="text/javascript">
function validateregform()
{
with (document.getElementById('frontregisterform'))
{

if (validate_required(document.getElementById('regname'),"Please fill in your full name!")==false)
{document.getElementById('regname').focus();return false;}  

if (validate_email(document.getElementById('regemail'),"Please fill in a valid email address")==false)
{document.getElementById('regemail').focus();return false;} 

if (validate_required(document.getElementById('pass'),"Please fill in your password")==false)
{document.getElementById('pass').focus();return false;}     
}
}
</script>

So what I need this to do is check the field entry to make sure it is within the year range of 1946 to 1964 and then if it is not to simply pop up a message saying (registration is restricted to those born between 1946 to 1964).

This doesn’t need to be a sever level thing as I do not need to prevent individuals from actually registering if they are not born within that year range, other validation will be required later in the process that will prevent their use. Just at this point I need to alert registrants that the site is intended for use by a specific age group.

Any assistance in this matter would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:52:25+00:00Added an answer on May 26, 2026 at 2:52 pm

    This can help you ?

    if (document.getElementById('popopo').value < 1946 
    || document.getElementById('popopo').value > 1964) {
        alert("registration is restricted to those born between 1946 to 1964");
        return false;
    }
    

    [Edit] : Don’t forget to return false so that the form is not sent

    Don’t forget to accept answer or ask for more information.
    Nicolas.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have some data like this: 1 2 3 4 5 9 2 6
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.