I need to pass an array from one page to a PHP page to get it to write it to a file, then another page has to access that file an array in the second page.
So far i have an array in JavaScript loaded with all the info I need:
JavaScript code:
$.ajax({
url: 'woepanel.php',
type: 'POST',
dataType: "json",
data: vars,
});
PHP code:
<?php
$datap = array(json_decode($_POST['data']));
file_put_contents('var.txt', print_r($datap, true));
?>
As for the page pulling I'm unsure on how to accomplish this..
echo
– u_mulder Apr 9 at 19:18