470,815 Members | 1,287 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

XMLHttpRequest not posting data to php

i have the following javascript code:


try{F=new ActiveXObject("Msxml2.XMLHTTP")}
try{F=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){F=typeof "XMLHttpRequest"!="undefined"?new


F.onreadystatechange=function(){F.readyState==4?ev al(F.responseText):0}



when i run this in firefox 1.5 the "post" fields are recognised by php,
however, when i use internet explorer 6.0 the "post" fields are not
recognised by php. i have checked the headers sent in IE and they
appear to be correct (eg, Content-Type =
application/x-www-form-urlencoded"...). as suggested in another post, i
have enabled the "always_populate_raw_post_data" directive in my
php.ini file, yet the "post" fields still don't exist.. also, when
running phpinfo() on the page that is being posted to,
$_SERVER["REQUEST_METHOD"] = "GET" - something is wrong here. is it
something to do with the the script above, the browser or the server?

thanks for any help,

Feb 11 '06 #1
0 1022

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Allan Cammish | last post: by
22 posts views Thread by googlegroups | last post: by
3 posts views Thread by Peter Afonin | last post: by
4 posts views Thread by Peter Afonin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.