i want to pass a jquery variable into php, l'ets say: i have this input:
<input type="text" name="" id="course" />
an jquery:
$.get('test.php',
function(data) {
$('#details').html(data);
}
);
and test.php:
$sql = "select name, id, parent_id from mytable where parent_id='theinput'";
so basiclly i want the input data that filled by user to be in the php query ('theinput')