Trying out a poll system, nothin fancy, and for no reason, really. But I am having a brain-lapse, and am in need of some assistance. Here's the code in the Flash file:
Code: Select all
poll = new LoadVars();
pollURL = "http://d6c3z021/polltest.php";
//the above is the addy for the apache I have installed.
function submitForm() {
choice = radioGroup.getData();
poll.load(pollURL+"?choice="+choice);
}Code: Select all
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?
$choice1;
$choice2;
$choice3;
$choiceCount1=0;
$choiceCount2=0;
$choiceCount3=0;
if($choice1){
$choiceCount1 += 1;
echo "$choiceCount1 counts for number 1";
}
elseif($choice2){
$choiceCount2 += 1;
echo "$choiceCount2 counts for number 2.";
}
elseif($choice3){
$choiceCount3 += 1;
echo "$choiceCount3 counts for number 3.";
}
else{
echo "No values encountered.";
}
?>
</body>
</html>Any ideas?
Steve