I am using the below code ( PHP - Ajax )
..It works fine on firefox,chrome,
Bu not works on IE...

Please help me as i am new to PHP-AJAX

Thanks in Advance


var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
Member Avatar


Please help me as i am new to PHP-AJAX

It's a bug. The code you provided, I can't do anything to it because it looks right.

I don't see any issue.

The issue is that it doesn't work on IE.

So you need to read these article and it will explain why it does that and try to used the code from the link to resolve your own code: