I am trying to force visitors to select a date when they place a bid. I have taken over the programming and am new to PHP.
I do not want a visitor to be able to progress past the detail screen without selecting one of the dates. Is there a way to have PHP check to see if a check box has been selected and if one has not to inform the user to select a date? I am sure there is I just don't know how to. Any help would be greatly appreciated.
Here is some of the script that I am working on.
<form action="./" method="post">
<input type="hidden" name="page" value="job_bid">
<input type="hidden" name="sub" value="form">
<input type="hidden" name="id" value="<?php echo $id; ?>">
...
echo "<tr>
<td align=\"right\"><input type=\"checkbox\" name=\"jobdatetime[]\" value=\"$td\"></td>
<td align=\"center\" bgcolor=\"#ddddff\">$tdw $td</td>
<td align=\"center\" bgcolor=\"#eeeeee\"><b>$tt</b></td>
</tr>";
I can send or post the whole code if it is neccessary but I didn't want to make this a confusing mess.
Thank you in advance.