Code: Select all
<?php
echo 'you selected: <br/>';
$check = $_POST['check'];
foreach($check as $key => $value) {
echo $value.'<br/>';
}
?>
<form action="forma.php" method="post">
<input type="checkbox" name="check[]" value="A" /> Often fails to
pay close attention to details or makes careless mistakes in schoolwork, work, or other activities<BR>
<input type="checkbox" name="check[]" value="B" /> Often has difficulty maintaining focus on tasks or play activity<BR>
<input type="checkbox" name="check[]" value="C" />Often does not seem to listen when spoken to directly<BR>
<input type="checkbox" name="check[]" value="D" /> Often does not follow through on instructions and fails to finish schoolwork, chores, or other responsibilities (not due to oppositional behavior or failure to understand instructions)<BR>
<input type="checkbox" name="check[]" value="E" />Often has difficulty organizing tasks and activities<BR>
<input type="checkbox" name="check[]" value="F" />Often avoids, dislikes, or is reluctant to take part in activities that require continuous mental effort,such as schoolwork or homework.<BR>
<input type="checkbox" name="check[]" value="G" />Often loses things needed for tasks or activities, such as toys, assignments, books, or tools<BR>
<input type="checkbox" name="check[]" value="H" />
Is often easily distracted by extraneous stimuli<BR>
<input type="submit" name="formSubmit" value="Submit" />
</form>