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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:48:50+00:00 2026-05-21T07:48:50+00:00

Okey, this might seem a bit strange question so I will explain. Do I

  • 0

Okey, this might seem a bit strange question so I will explain.

Do I really need to create a postback that explains what is wrong with form if it’s not validated if I also use JS for it?

I am of course validating user input and I use somewhat “general” approach. For instance if something is not validated it will just show “Some error occurred, check your input bla bla..”. I am not creating postback for every input so that it will shot “Your username is suppose to be at least 3 characters long etc..” and I don’t do this because JS is doing that on the fly.

My server-side validation only is like a guard against stupid/wrong entries where name is empty or something along that, rest is up to jQuery. Form will always be valid if client is running JS. I am doing it to save my time.

My question is – is it a bad idea? I just don’t see why because everyone is running JS anyway and my server is not allowing bad/invalid entries to be put in DB even with JS off.

  • 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-21T07:48:51+00:00Added an answer on May 21, 2026 at 7:48 am

    I don’t think that’s a bad idea, data validation can be client side. If something goes wrong, i just throw a generic error.

    I only validate server side the business rules

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

Sidebar

Related Questions

Okey this is really strange. I have this script which basically downloads bunch of
Okey, here it goes. I have a block of code that repeats it self
Lets say i have a Shape object that has a constructor like this: Shape(
Well, I need to make simulator for non-deterministic Push-Down Automaton. Everything is okey, I
Okey, so this is my problem. I have a page structure saved into a
Okey this is driving me crazy now... I'm working on a directX game in
Okey, so this is my problem. I want to use mod_rewrite to make nice
Okey so, im kind of new to JBoss. My problem is that i dont
Okey dokey, I have a jQuery function that checks the height of 2 divs
This is really confusing me, it just does not want to work. I did

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.