i want to check username in database whether it is there or not while typing
i wrote php coding in same page..i have taken the username by javascript like var x=document.getElementById("username").value;
now how to pass value to php code.please give suggestion for this.