function updateinfo()
{
var xmlhttp;
if (window.XMLHttpRequest)
{
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
alert("Your browser does not support XMLHTTP!");
}
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
{
var ajaxDisplay = document.getElementById('hiddendiv');
ajaxDisplay.innerHTML = xmlhttp.responseText;
}
}
var sex = document.getElementById('sex').value;
var relationship = document.getElementById('relationship').value;
var bday_day = document.getElementById('day').value;
var bday_month = document.getElementById('month').value;
var bday_year = document.getElementById('year').value;
var hometown = document.getElementById('hometown').value;
var neighborhood = document.getElementById('neighborhood').value;
[B]var imen = document.getElementById('interestedmen').value;
var iwomen = document.getElementById('interestedwomen').value;[/B]
xmlhttp.open("GET","http://www.playminigames.co.cc/ajax/updateprofileinfo.php?sex=" + sex + "&bday_day="+ bday_day +"&relationship="+ relationship +"&hometown="+ hometown +"&neighborhood="+ neighborhood +"&bday_month="+ bday_month +"&bday_year="+ bday_year [B]+"&imen="+ imen +"&iwomen="+ iwomen[/B],true);
xmlhttp.send(null);
}