Forum Moderators: open
xmlhttp.send('var0=yes&var2=no');
Yet this didn't work (I've been testing with PHP server-side, as no access to ASP today).
POST data isn't usually such a string, so I had a look around for ideas as to how to set the enctype (or whatever), and found success with the
setRequestHeader method. xmlhttp.open( "POST", url, false );
xmlhttp.setRequestHeader(
'Content-Type',
'application/x-www-form-urlencoded; charset=UTF-8'
);
xmlhttp.send("apples=yes&bananas=no")
Tested in IE6 & FF1
How does one deal with binaries, image uploads for eg, I wonder?