Javascript:
code:
function OnWinEvent_CtrlClicked(Wnd, CtrlId){
switch(CtrlId) {
case 'BtnAccept': {
for(var i=0; i < Wnd.LstView_GetCount('ListView'); i++) {
if(Wnd.LstView_GetSelectedState('ListView', i) === true) {
oSendData('quote=this is a quote');
}
}
break;
}
}
function oSendData (sData) {
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open('POST', 'http://www.snuzzer.dk/wowforge/admin-msgplus.php', true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
Debug.Trace(xmlhttp.responseText);
}
}
xmlhttp.send(sData);
}
PHP:
code:
<? echo $_POST['quote']; ?>
Also your code appears to be messed. You have one to many breaks; look at the code.