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

  • SEARCH
  • Home
  • 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 8351133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:32:15+00:00 2026-06-09T08:32:15+00:00

I have a registration form on my website and I have 3 input boxes

  • 0

I have a registration form on my website and I have 3 input boxes for the Date of Birth where are coded like this…

<input name="dd" id="dd" type="text" value="DD" size="2" />
<input name="mm" id="mm" type="text" value="MM" size="2" />
<input name="yyyy" id="yyyy" type="text" value="YYYY" size="4" />

I then have a JavaScript validation page which is run on Submit. This page checks that the fields are not empty and that they are between a certain number e.g. between 1 and 31 for Day
Here is the JavaScript for the ‘dd’ field…

var nulld=document.forms["create"]["dd"].value;
if (nulld==null || nulld=="")
  {
  alert("Please enter a day between 1 and 31");
  return false;
  }
var dd=document.forms["create"]["dd"].value;
if (dd >= 1 && dd <= 31)
  {}else{
  alert("Please enter a day between 1 and 31");
  return false;
  }

So I have this code, but iv noticed that someone is disabling JavaScript on this computer and is creating loads of accounts with incorrect data.
How do I stop this from happening? or is the only way to do it to add code that checks if JavaScript is disabled and divert them to an error page like this…

<noscript><meta http-equiv="refresh" content="1;url=nojavascript.html"></noscript>

Is there another way to do it where users can still create an account without JavaScript but still have the Validation?

  • 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-06-09T08:32:17+00:00Added an answer on June 9, 2026 at 8:32 am

    JavaScript validation is good for one thing only: quickly letting users know that the data they are going to submit to the server will be rejected.

    You cannot control what comes into your system. You must check that data is suitable on the server before you start processing it.

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

Sidebar

Related Questions

I have a registration form on my website and need to validate the input
I have created Login forms and registration forms for a website. The form is
I have a registration form and used fieldset to order the input fields in
I have a registration form where this CSS rules apply. when user submits with
I had a weird problem, our website has registration form coded using zend form,
I'm creating a registration form on my school project website. I have given a
I have a registration form for a website that needs to check if an
Say I have an HTML form like this to collect an email from a
I would like to have the authentication and registration parts of my website encrypted
For <input type=password /> In ASP.net: PasswordField.text = RawPasswordString; This doesn't work, but can

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.