could someone check my coding.. checkbox is not functioning. i dont know where is the mistake.
PHP Code:
<form name="form1" method="post" action="">
<input type="checkbox" id="show" name="show" value="Show">Show
<input type="checkbox" id="no" name="no" value="no">Dont Show
</form>
<?php
if($show == "checked"){
echo "<td align=\"left\">"."<FONT SIZE=1 face = arial><textarea cols=\"60\" rows=\"2\" name=\"Catatan\">$Catatan</textarea>\n";
print "<input type=\"submit\" name = \"butang\" value=\"Add\"></td>\n\n";
echo "</tr>";
echo "</table></form>";
echo "</center>";
}
if($no == "checked"){
echo "<td align=\"left\">"."<FONT SIZE=1 face = arial><textarea cols=\"60\" rows=\"2\" name=\"Catatan\" style=display:none>$Catatan</textarea>\n";
print "<input type=\"submit\" name = \"butang\" value=\"Add\"></td>\n\n";
echo "</tr>";
echo "</table></form>";
echo "</center>";
}
?>