mercredi 15 octobre 2014

not able to pass parameter to jquery load url


Vote count:

0




my code is as follows



$(document).ready(function(){

var bed = $( "input[name=bed]:checked" ).val();
var bud = $( "input[name=bud]:checked" ).val();
var loc = $("#autocomplete").val();

$("#search_list").load('main_frame2.php?bed='+bed+'&bud='+bud+'&loc1='+loc);
});


in main_frame2.php



<?
session_start();

echo $loc = $_POST['loc1'] ;
echo $bed = $_REQUEST['bed'] ;
echo $bud = $_REQUEST['bud'] ;

?>


i am getting the values of bed and bud. but m not getting for loc. but if i use alert inside jquery function m getting loc name . but this value is not passing to main_frame2.php



asked 40 secs ago







not able to pass parameter to jquery load url

Aucun commentaire:

Enregistrer un commentaire