hi
normally when we send a value, it looks like this:
data="something"
In the other php file:
$form = $_POST['data'];
But suppose, that i sent only the content
something
in the other php file, the same aproach didn’t work
$form = $_POST[???]
How can i get the value that is send, in my case-- just, the word something ?
$.ajax({
url: "get.php",
type: "post",
dataType: "json",
data:'<?php echo $data; ?>',
success: function() {
$('#total').load('xxx.php');
}
});