<form method="post"
action="checkbox.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>
|