<form method="post"
action="12_2.php">
<input name="hs[]" type="checkbox"
value="Biking"> Biking
<input name="hs[]" type="checkbox"
value="Hiking"> Hiking
<input name="hs[]" type="checkbox"
value="Reading"> Reading
<input type="submit" name="act"
value="Check">
</form>
|
<html><body>
<?php
echo "Pick: ";
$hs = $_POST[hs];
foreach ( $hs as $h )
echo "$h ";
?>
</body></html>
|