i have a page with a form with a checkbox. if the checkbox is checked when the form is submitted, a certain variable is set. but i can't get php to recognize the checkbox. please help.
<FORM NAME=TickleList ACTION="pbr_tickler_detail.php" METHOD="POST">
<INPUT TYPE="checkbox" NAME="WhereToReturn">
<?
echo ":".$WhereToReturn.":";
if ($WhereToReturn) {
echo '<INPUT TYPE="hidden" NAME="ReturnToScript" VALUE="pbr_tickler_list.php">';
} else {
echo '<INPUT TYPE="hidden" NAME="ReturnToScript" VALUE="pbr_detailview.php?id='.$id.'">';
}
?>
</FORM>
nothing is displayed between the colons. even when i set a value for the checkbox, nothing shows up. any help is appreciated.