View Single Post
Old 01-13-2005, 10:18 PM   #3 (permalink)
mjw
Upright
 
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.
__________________
Quis custodiet ipsos custodes?
mjw is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62