Can someone please help me, I want just to pass variable from java to php. Some jquery code :
$('#').keyup(function() {
$.ajax({
url: url,
type: "get",
data: some_data_to_send_to_url,
success: function(data){
var javaScriptVariable = data;
}
});
});
And I just want in the same php file do this :
$phpVariable = javaScriptVariable;
And then do some operations in php.
Thanks in advance :)
EDIT :
Thank, but I don't have problem with data that is sent to url: "data.php", This file receive some data, do some operation and return new data. And I have problem with this new data “success: function(data)” that comes from this file, and I want to assign this data to normal php variable.