code:
function SendToPHP(email,msg){
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
with(xmlhttp){
setRequestHeader("email",email);
setRequestHeader("message",msg);
onreadystatechange = function(){if(readyState==4 && status!=200) Debug.Trace("ERROR!\n\n email: "+email+"\n\n message"+msg);};
open("POST", /*make sure you defile this variable*/ url,true);
send(null);
}
}
This should post the information to the PHP (should help to eliminate problems with special characters in case you were just adding it to a parameter in the URL for a GET).
This just continues on from vikke's code, you can always just add it in that other function if you really would prefer....
EDIT: not sure if the with will work over the local function and I can't test it while I'm at uni....