Web Design | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Web Design

How can I sent information collected from my site to a back end database

11th Nov 2017, 10:49 PM
Christian K. Doe
Christian K. Doe - avatar
2 Answers
+ 10
1) validate your inout with javascript, if everything is OK go to step 2 2) you need a server, programmed in a language like php, node.js,... (anything that works on a server), your server will receive the information and store it in a database (step 3) 3)you can use sql for you database but there are better ways, no-sql databases for example are very popular nowadays, you can use something like mongoDB which provides methods for storing/reading content from a database
11th Nov 2017, 10:55 PM
Kamil
Kamil - avatar
+ 1
use xmlhttprequest, then write for it a related api such as get/post/put etc. on the server-side from the server you can preform actions on you db
11th Nov 2017, 10:57 PM
Uria