Can JavaScript be used to process forms? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can JavaScript be used to process forms?

I learned HTML a few years ago from a book (Headfirst HTML), and it explained how to create forms, but not how to actually process the responses you get. I know that you can get form data using JavaScript, but it seems like it is used more to validate the data and not as much to actually react to what is input. Is this true, and if so, what languages should be used instead?

25th Jun 2019, 3:10 PM
Gisele Nelson
Gisele Nelson - avatar
3 Answers
+ 5
Web javaScript is a client side language. It can validiate your form data, but cant save it in server or database server. For that, you need a serverside language. There are various serverside languages. For eg: PHP ASP NodeJS Python C,C++,C# As you are a beginer, take PHP course after learning HTML,CSS,JS.
25th Jun 2019, 3:32 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 2
You can use nodejs to handle form responses
26th Jun 2019, 4:44 AM
Christian Paez
Christian Paez - avatar
0
This was helpful
30th Jul 2019, 8:45 AM
Omasan Diamond Edema
Omasan Diamond Edema - avatar