I have a form on a page and I want to get a page with the results from that form into a table. The code below should show the results but doesn't.
if($POST['myradio'] == "Currently In Place") {
$s= "X";
}
elseif($POST['myradio'] == "Required Essential") {
$t = "X";
}
else {
$u= "X";
}
echo"<table border='1'><td>Requirement Type</td><td>Currently In Place</td><td>Required-Essential</td><td>Required-Recommended</td><td>i-Clean Solution</td><tr>
<td>test</td><td><center><strong>$s</strong</center></td><td><center><strong>$t</strong></center></td><td><center><strong>$u</strong></center></td><td>Module here</td>";
The previous page code looks like this:
$productsql = "SELECT * FROM survey WHERE rtid=2";
$productResults = mysql_query($productsql);
while ($productRow = mysql_fetch_array ($productResults)){
$ProductName = $productRow["requirement_txt"];
echo "
<tr>
<td>$ProductName</td>
<td><INPUT type='radio' name='myradio[{$productRow['id']}]' value='Currently In Place' CHECKED></td>
<td><INPUT type='radio' name='myradio[{$productRow['id']}]' value='Required Essential'></td>
<td><INPUT type='radio' name='myradio[{$productRow['id']}]' value='Required-Recommended'></td>
</tr>";}
echo"<tr><td><strong>3 - Health And Safety</strong></td></tr>";
$productsql2 = "SELECT * FROM survey WHERE rtid=3";
$productResults2 = mysql_query($productsql2);
while ($productRow2 = mysql_fetch_array ($productResults2)){
$ProductName2 = $productRow2["requirement_txt"];