@mslysz
Posted
You need to work on ways to validate, when we fill in one field e.g. Cardname holder and click the submit button then even though errors pop up to fill in the other fields, a window also appears indicating that our form has been submitted. In your validation, you must indicate that if even one input is not filled in correctly, the form cannot be sent. I recommend this video on Youtube: https://www.youtube.com/watch?v=In0nB0ABaUk where we have a very nice and quick explanation of how to create a validation form.
Also at this address, it is very well explained how to write validation js code: https://www.freecodecamp.org/news/form-validation-with-html5-and-javascript/