Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
PHP is server side language and the form is submitted via client side via javascript . to make the submit happen catch the event by javacript by giving an id on the form and prevent its default behavior by document.getElementById and e.preventDefault() and get the fields value in the same way and afterwards use fetch api to communicate with the backened
yes it is....
When it comes to development, nothing is impossible. And by impossible I really mean impossible, you can do any thing you can imagine.
Your query can be solved with the help of both java script and ajax. all you have to do is use events like blur or change etc. and you can can perform a form submission.
In fact java script have submit functions which can be submit the for to required action.
now perhaps you will be thinking m just telling you the possible ways but why am i not giving you the exact code of name of the function, this is because I want you to search for it. Because in the journey you will learn few more things which will help you in future.
best of luck. Thank you
Dont want to add button at all ?
Using Button Id we can able to submit the form by taking each elements value.
Add javascript code to auto submit the form based on some events like after verifying that the form is completely filled
BY using javascript and and assign a submit method
using submit() methos in javascript
it can e done by using Javascript "submit()" function.
By simply including some JavaScript code
Via JS using document.getElementById("form_id").submit();
form_id is the form id.
I prefer not to use PHP. Use more modern Languages