i have a few php vars:
$test = 12345;
$test1 = "test1";
$test2 = "test2";
and i have a jquery function:
onlike:function(response){
$('input#helpdiv').trigger('click');
}
what i want is to pass those php vars through a jquery post to another test.php
file.
I was thinking on something like this:
var test = <?php echo $test; ?>;
var test1 = <?php echo $test1; ?>;
var test2 = <?php echo $test2; ?>;
onlike:function(response){
$('input#helpdiv').trigger('click');
$.post("test.php", { test, test1, test2 } );
}
and then how do i get them in the test.php
? just like $_GET["test"], ...
any ideas on how to put this together?
thanks