+ 2
How to store data from a form in a web page in a file?
like collecting data of students via a web page and storing it in a file. #data_file_handling in js.
10 Answers
+ 7
you'll need php,sql knowledge.
Send the data to php through json or Ajax and store in sql or MySQLi tables
+ 3
kingdx my explanations were based on what was possible on sololearns playground,without Ajax or Json it's quite impossible to transmit data here
+ 2
well there are several ways of doing the same thing,but MySQL is the only way I know
+ 2
There is no need for AJAX or JSON to store data to a database, you just need php and a database access. You could also store data in txt files if you wish so. Obviously tho, none of these features will work in sololearn code playground.
+ 1
through the fopen() and fwrite() functions
0
is there no other way .. like fstream in c++?
0
ok thanks
0
how can I store it in text files...?
0
can you please explain or give me a reference...?