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
Get step-by-step solutions from verified subject matter experts
