My friend and I created a polling system, everything is well except one thing.
Below are the codes for choosing answers and submit answers, this only problem occured in red:
//To Send Data to Php
testPHP= new LoadVars();
testPHP.choice=1;
//To Trace radio Button Event
teamListener= new Object();
teamListener.click = function (evt){
testPHP.choice=evt.target.selection.data;
}
team.addEventListener(“click”,teamListener);
// Submit Btn action
submitBtn.onRelease = function () {
[color=red]**testPHP.send(“poll.php”,“POST”)
**[/color] gotoAndStop(2);
};
//View Result Btn action
viewResultBtn.onRelease = function () {
gotoAndStop(2);
}
The red code results when ppl click submit btn, the poll.php will be loaded in a popup window before the result showed in next frame of flash movie. But I don’t want such popup window appears. How can we change the code to achieve that?