Question: this is my code and json file. is there a way to accomplish the same thing with out using php. In other words can I

this is my code and json file. is there a way to accomplish the same thing with out using php. In other words can I write to a json file when the buttons are pressed using only html and javascript. If this is not possible explain way and if it is show me how.

php code

$newJsonString = json_encode($jsondata); //encode data back file_put_contents('sel.json', $newJsonString); //write into file ?>

KMOG U.I. with backend json

json file

[{"sel":0}]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!