JavaScript: If clause partially executed !!!
- by arwa
Hi everyone
My problem is that when the condition is true it will close the window but not execute the php part !
here goes my code..
function onClose()
{
var r=confirm("Is the meeting Over!");
if (r==true)
{
window.close();
}
else
{
}
}
</blink>
this is the php part..
$sql="UPDATE previousmeetings SET Live='0' WHERE MeetingID='34'"; //$meeting_id
$sql2="UPDATE previousmeetings SET Live='1' WHERE MeetingID='34'";