Jump to content

AJAX language problem


life_maker

Recommended Posts

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 :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...