Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

182
Views
How to submit form with validation in javascript and PHP

Hi created php page with input form and validation. The problem is that when i click on submit the validation works but the form is not submitted... Anyone can help me to understand where is the problem?

[https://jsfiddle.net/892wm47t/][1]

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

e.preventDefault(); stops the submission from completing. You're calling it on every attempt to submit the form.

You need to call it conditionally; only when the validation reports a problem.

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!