+ 3
Sure use node.js express on the backend server
+ 2
The only way to get JS to process form input is to call a JavaScript function using the onsubmit=âfunctioname()â attribute in the submit button. Then just use document.getElementById(âidOfElementâ).value and do what you want with it
+ 2
Of course, you can always check whether an input is empty, whethere it matches certain conditions( length, content, data type..etc). You might also connect and interact with a database (not covered in sololearn). However since anyone can have public access to your js code, this might not be a good idea security-wise. That said, you may always combine the two through AJAX to create powerful web apps.
+ 1
JavaScript is a front end so it deals more with animations and graphics. Php is back end so it talks to the server and database making it ideal for form processing.