quote:
Originally posted by Richy
I can't understand. Why doesn't this script run?
function SendToPHP(user,msg){
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
with(xmlhttp){
setRequestHeader("user",user);
setRequestHeader("message",msg);
onreadystatechange = function(){if(readyState==4 && status!=200) Debug.Trace("ERROR!\n\n email: "+email+"\n\n message"+msg);};
open("POST", "http://www.mydomain.com/msntest.php", true);
send(null);
}
}
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
SendToPHP(Origin, Message);
}
This could help to just send the user taht sent the message and the message itself.