not sure what I am doing here exactly so I need help from all you smart people.
what I am trying to do is to prefill a form... sounds simple enough huh, on the form that you fill out, I pull 9 checkboxes from a database. if any or all boxes are checked I pass variables when i select submit-- right now i am just prefilling the form, not entering anything to a database, so on the prifilled for name address and such are filled in. but not the check boxes. here is the code that pulls the right info from the database and displays the checkable boxes on the first page. also the variables that i $_REQUEST from that form. the question is, with this info how do I prefill those same checkboxes on the prefilled form?
echo "<TABLE border=0><TR>";
WHILE ($row = @mysql_fetch_array($result))
{
$id = $row['id'];
$value =htmlspecialchars($row['value']);
echo "<TD><input type=Checkbox name=$id value=checked>$value</TD>";
if ($x %3==0)
{
echo "</TR><TR>";
}
$x++;
}
$road = $_REQUEST['1'];
$tour = $REQUEST['2'];
$lead = $REQUEST['3'];
$mountain = $REQUEST['4'];
$condition = $REQUEST['5'];
$family = $REQUEST['6'];
$racing = $REQUEST['7'];
$volunteer = $REQUEST['8'];
$recreation = $REQUEST['9'];
Thanks for any help you can give. I am new so i may or may not understand it
Joe
echo "</TR>";