Quote:
Originally Posted by Lewis
I simply want to add all the 'yes' answers that are given, and display the number on a results page.
|
Forgot this part, sorry. This would actually go in the php code on the display page.........so inside the php code add the following:
$counter = 0;
if($var1 == "Yes"){
$counter = $counter + 1;
}
so the display page would look like ::
******************************************
******************************************
******************************************
<html>
<head>
<title>show</title>
<?php
$var1 = $_REQUEST['one'];
$counter = 0;
if($var1 == "Yes"){
$counter = $counter + 1;
}
?>
</head>
<body>
<br><br><center><?= $var1 ?></center><br><br><center><?= $counter ?></center>
</body>
</html>
Peace::
~M.