tommasov

Form per Andrea Vinci

May 17th, 2021 (edited)
626
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $mio_array = $_POST["mio_form"];
  4. $filename = $mio_array["nome"] . "_" . $mio_array["cognome"] . ".json";
  5. $mio_array_in_json = json_encode($mio_array);
  6.  
  7. file_put_contents($filename, $mio_array_in_json);
RAW Paste Data