+ 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.

9th Apr 2018, 6:09 AM
Rohit Kaushal
Rohit Kaushal - avatar
10 odpowiedzi
+ 7
you'll need php,sql knowledge. Send the data to php through json or Ajax and store in sql or MySQLi tables
9th Apr 2018, 6:14 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 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
9th Apr 2018, 7:13 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
well there are several ways of doing the same thing,but MySQL is the only way I know
9th Apr 2018, 6:18 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 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.
9th Apr 2018, 6:24 AM
CHMD
CHMD - avatar
+ 1
through the fopen() and fwrite() functions
9th Apr 2018, 6:26 AM
CHMD
CHMD - avatar
0
is there no other way .. like fstream in c++?
9th Apr 2018, 6:16 AM
Rohit Kaushal
Rohit Kaushal - avatar
0
ok thanks
9th Apr 2018, 6:18 AM
Rohit Kaushal
Rohit Kaushal - avatar
0
how can I store it in text files...?
9th Apr 2018, 6:25 AM
Rohit Kaushal
Rohit Kaushal - avatar
0
can you please explain or give me a reference...?
9th Apr 2018, 6:27 AM
Rohit Kaushal
Rohit Kaushal - avatar