Halloi have a big problem in AJAX , its not supporting Arabici tried to fill combo by clicking a radio button using AJAX but the combo filled with unknown datahere is AJAX functions//The POST method AJAXfunction post_method(t){var data = t.value;request.open('post', 'our_real_estate_code.php');request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');request.onreadystatechange = output;request.send('data='+data);//variable will be stored in post array}here is my php code page
if(isset($_POST['data'])){ $qry = $_POST['data']; if($qry == 2) $qry = "select id , name from real_estate_type where lang = $lang"; elseif($qry == 1) $qry = "select id , name from real_estate_type_lands where lang = $lang"; Fill_Combo($qry ,'real_type' , '' , '' , '' ,''); }
PLZ i need help as soon as possible