I tried all the scripts and they work (on both IE and mozilla) ! What error are you getting exactly ?

Aaa. They all work now. Thanks to you and Error console.

Do you have any working example for auto completing for php&mysql ? I have tried a lot of web examples but none worked.

I'll mark this as Solved after your answer.


Well, I don't have an example with me. But, Instead of having an xml, you can query the table, then have a select element where you can show all the matching values. Also have an onchange event for select so that when the user clicks an option, it is inserted to the textbox.

<select name='selecttag' multiple='10' onchange='document.getElementById('txt1').value=this.value;'>

You also need to hide the border of select element.

This question has already been answered. Start a new discussion instead.