<html> <head> </head> <body> <?php $come = $_GET[a]; echo phpversion(); echo "cnt=".count($come); for($i=0; $i<count($come); $i++) { echo ">>>".$come[$i]."---"; } ?> <p><font color="red">hello</font></p> <?php ?> <form action="index.php" method="get"> a <input type="checkbox" name="a[]" value="on" /> b <input type="checkbox" name="a[]" value="off" /> c <input type="checkbox" name="a[]" value="on" /> <input type="submit"> </form> </body> </html>
时间: 2024-10-10 11:38:57