0

I have a web form that requests basic user information such as user name, address and email from the user. The form has basic JavaScript validation to make sure the user provides the required information in order to continue.

The form uses a combination of POST and GET through short series of questions. However, I routinely receive the form at the server with the basic user information missing.

Is the information possibly being stripped out by a firewall? A browser extension? If so, is there a way to verify this or to work around it?

4
  • Client side validation isn't very robust. Can you implement server side validation too? Commented Oct 19, 2022 at 17:22
  • @StephenOstermiller, I could. While some missing data appears to be intentionally missing, other times it doesn't appear the users are intentionally leaving out data.
    – Trebor
    Commented Oct 20, 2022 at 3:12
  • Maybe they have javascript disabled. I use the required attribute rather than javascript. but that can also be altered. Why aren't you checking the validity in the POSTed page and asking the user to re-enter the information ? Commented Oct 21, 2022 at 21:03
  • @RohitGupta, it's a WordPress plugin and I hesitate to add custom functions specific to a plugin even in my own library files. However, server side validation may be the only option I have.
    – Trebor
    Commented Oct 22, 2022 at 20:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.