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 974287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:24:45+00:00 2026-05-16T03:24:45+00:00

What is the point in validating your HTML forms using Javascript, if you are

  • 0

What is the point in validating your HTML forms using Javascript, if you are always going to need to validate the forms using PHP anyway? I realize that you get a speed boost from this, and its more convenient to the user, but beyond that, is the time spent on it worth it? If anyone has any good evidence on this I would love to hear it.

Thanks for any help!
Metropolis

UPDATE

After receiving numerous answers I would like to change the question a little. We all know that javascript is much more convenient for the user and it gives faster feedback. What I am wondering is: Has anyone ever seen any “evidence” that its worth it? Or do we just do it because it makes things a little better and everyone says we should? The speed difference is not that significant, and as the internet gets faster javascript validation will become even more obsolete I would think.

I am starting to wonder if the time spent validating a page using javascript could be better spent.

  • 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-16T03:24:46+00:00Added an answer on May 16, 2026 at 3:24 am

    Ideally, you validate through javascript and (in your case) PHP.

    Both validation methods will work in-tandem to ensure you get the most robust and user friendly functionality possible for your end user.

    You will use client-side validation to ensure that all fields are filled in, email addresses are valid, etc.. this will provide instant feedback and won’t burden your servers or the user’s internet connection.

    you validate server-side for security. You can control everything on the server and nothing on the client machine. It’s here that you ensure that all entered data is non-malicious and correct.

    Keep this in mind: if you are only going to go with one type of validation, choose server-side validation because it is more secure. You should never rely on client-side code for any kind of security.

    Using both types of validation gives you the best of both worlds (responsiveness and security) while having none of the downsides. Of course, this means you have to write more code, but in my opinion, it’s worth it.

    EDIT: In response to the comments

    Yes, you have to write more code this way… As a rule of thumb, if it’s harder for the programmer, it’s easier on the user. It might not make sense in some budgets to do both types of validation and that’s a call you’re going to have to make. Just make sure your server side validation is rock-solid regardless.

    Yes, time is money, and time invested in improving the user’s experience is time well spent. If you can’t afford to do it now (deadlines/schedule/budget) then do it when you can.

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

Sidebar

Ask A Question

Stats

  • Questions 516k
  • Answers 516k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer WWW::Mechanize is good at extracting links, but if you need… May 16, 2026 at 6:44 pm
  • Editorial Team
    Editorial Team added an answer No issues that I know of. We run CI on… May 16, 2026 at 6:44 pm
  • Editorial Team
    Editorial Team added an answer Use initialization list. class B { public: B(int i) {}… May 16, 2026 at 6:44 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm having this problem with validating a document that contains some basic PHP variables.
I am using the jQuery validation plugin and I would like to validate a
I'm re-creating a registration for my website using Codeigniter. On my previous page, I
I'm validating a text field in my form as follows: $name = new Zend_Form_Element_Text('name');
A common problem in any language is to assert that parameters sent in to
Here is the problem. I have data validation and sanitation code in PHP and
I'm using Ubuntu 10, python 2.6.5 I'm following this tutorial: http://www.djangobook.com/en/2.0/chapter02 I followed all
hi all as i know that asp.net provide server side validation control which has
I am working on a new system and am stuck at a point with
I have some code that creates an IWebProxy and then casts it to a

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.