I want to post 3 variables. Request,Arival,Departure. It must be somewhere in the script. I tried different ways but can't get it working
Request = '{REQUEST}',
Arrival = '{ARRIVAL}',
Departure = '{DEPARTURE}'
My script is:
<script>
jQuery().ready(function(){
setInterval("getResult()",1000);
});
function getResult(){
jQuery.post("search.php", function( data ) {
jQuery("#show").html(data);
});
}
</script>
<button onclick="getResult()" >Get result</button>
<div id="show"></div>