Posts by Jonny Max • 31 points
1 post
-
3
votes3
answers605
viewsQ: Save a JSON file inside square brackets and separated by comma
I’m trying to save a file dados.json, where the form data is sent via POST to a file dados.php by AJAX. The code of dados.php is as follows: $array = array(); $fp = fopen("dados.json", "a");…