+ 3
Sure use node.js express on the backend server
6th Apr 2018, 3:22 AM
Mike Choy
Mike Choy - avatar
+ 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
6th Apr 2018, 2:27 AM
Ariela
Ariela - avatar
+ 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.
6th Apr 2018, 3:08 AM
CHMD
CHMD - avatar
+ 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.
6th Apr 2018, 2:26 AM
Ariela
Ariela - avatar