Given the following jquery:
$.post(path, {one:'alex', two:'thomas'}, function (response) {
alert(response);
});
And the following PHP:
<?php
$first = $_POST['one'];
echo $first;
?>
How do I get it to return a response?
It works fine if I send just one variable:
$.post(path, 'one=alex', function (response) {
alert(response);
});
Thanks