当前位置: 代码迷 >> PHP >> PHP之同名参数传递模式
  详细解决方案

PHP之同名参数传递模式

热度:74   发布时间:2016-04-28 17:49:24.0
PHP之同名参数传递方式
<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>

  相关解决方案