EDIT: thanks for the help. I received an email that we did not need the client side, so I abandoned this idea in favor of the actual completion of the task on time.
Before asking, yes, this is a job assignment. No. I am not looking for the code you need. I am new to practically no experience with HTML / PHP / javascript, but this is the second part of the task, so I already have part of my own code from the first part, which was very easy compared to this part. The task does not specifically say that we should use client-side validation, but I think that would be good practice.
I need someone to clearly show me how to use client and server side validation. I already have javascript validation, but I can change it since it displays a warning window for every error. I CAN’t use third-party code, such as jQuery, which everyone seems to like on the Internet, and the course I am doing does not like to actually teach us useful content, so we are all on our own.
Then the data from the form will be entered into the database via MySQL (which I do not expect to do), and, having looked at the minimum information from w3schools on this topic, I understand that I need to submit the form to the form myself.
The form itself is quite simple: it contains a name, DoB, email, zip code, etc. My current .js uses only alpha, only number, date format, email format, radio button and checkbox, and each field is checked to make sure it is not empty.
I believe this is a complete tutorial for me on how to do this. My internet search was barren, but at least I still have a week until that happens.
Any help is appreciated, but simple and clear help will be even more. I will continue to try the Internet for help until then and come back here if I find useful material for someone else with the same problem (which I am sure is 90% of my class .....)
Thanks in advance.