Well I am using the post feature with apache to send results and I keep getting undefined variable errors. The code I am using is
<form action="dur.php" method="POST">
<input type="checkbox" name="FirstCheckbox">
<input type="checkbox" name="SecondCheckbox">
<input type="submit" value="Send Form">
</form> in my test.html file, and in dur.php its
<?php
if($FirstCheckbox)
{
echo("The first checkbox was checked!<br>\n");
}
if($SecondCheckbox)
{
echo("The second checkbox was checked!<br>\n");
}
?>
The error is Notice: Undefined variable: FirstCheckbox in c:\jake\dur.php on line 2
Notice: Undefined variable: SecondCheckbox in c:\jake\dur.php on line 6
Any suggestions?