I have been searching for hours for this and still cant seem to find the solution. I am trying to use jquery to send a javascript variable to a php form
in one file.. index.php I have the following line:
$.post("test.php", { name: "John", time: "2pm" } );
in test.php, I have
$h = $_POST['name'];
print $h;
but nothing is printed. Sorry if this is a repetitive question. What am I doing wrong?