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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:15:51+00:00 2026-06-12T22:15:51+00:00

I am developing an ERP system using PHP as a server side..So I need

  • 0

I am developing an ERP system using PHP as a server side..So I need to be very careful for the security of my website/system. I’ll be also using JavaScript for client side validation. So I want to be sure that client has JavaScript turned on, of course I’ll be validating the data server side too but I don’t want unnecessary server calls, mainly I am concerned about forms..and the data the clients fill in and submit..so what should I use to submit my data?

Default HTML submit and validate here with JavaScript (Note : Useless if JavaScript is turned off by the client)

<input type="submit" name="Add Data" />

Or submit using an anchor tag <a> with help of a JavaScript (I found this meaningful as if JavaScript is turned off he wont be able to submit the data)

<a href="#" onclick="document.getElementById("form_id").submit();">Submit</a>

So are there any bad points if I use <a> tag for submitting data or should I stick with the default submit button? And if I use <a> for submitting the form data, than I’ll be able to validate the data using JavaScript?

  • 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-12T22:15:52+00:00Added an answer on June 12, 2026 at 10:15 pm

    So I want to be sure that client has JavaScript turned on

    You can’t. Even if you design the system to break without JavaScript, someone could reverse engineer it and submit bad data manually.

    of course I’ll be validating the data server side too

    That’s the solution

    but I don’t want unnecessary server calls

    If you are getting enough accidental submissions with errors in them from people with JavaScript turned off to give significant performance or load worries, I’ll eat my hat.

    Default HTML submit and validate here with JavaScript

    Yes. Bind the JavaScript to the submit event on the form.

    <a href="#"

    Don’t do that.

    So are there any bad points if I use <a> tag for submitting data

    • It doesn’t look like something that will submit a form
    • It doesn’t show up in forms mode in a screen reader
    • It silently fails if the JavaScript doesn’t work for any reason

    should I stick with the default submit button?

    Yes!

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

Sidebar

Related Questions

When developing an ERP-like software or any other complex business system, what resources do
We are developing an ERP using ASP.Net and C#.Net. Now in that, I want
While developing an application using gwt in ecliplse crashed. Now the server is running
For developing an devices monitor system, I am using a InetAdress isReachable method to
Developing a new ROR3 website, I need to implement a sort of internal mail
Developing a chrome extension using javascript is one of my university projects. I don't
on my company we are developing a ERP-like app using java and jsf, so
Developing server side code i finally got my eyes X-crossed trying to write -
Developing a project of mine I realize I have a need for some level
Developing a C# .NET 2.0 WinForm Application. Need the application to close and restart

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.