Home  >  Article  >  Backend Development  >  How to get data from form array in php_PHP tutorial

How to get data from form array in php_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:10:041079browse

这是我之前写的一段form代码


 
   
     
     
     
   
   
     
     
     
   
   
     
     
     
   
 


print_r($a1);
?>


原想是可以一次获取多但是行不通,通过网上找到了解决方法


所有需要传多个值input的name中加上[]

则php端读到的就是数组  var_dump($_POST['a1'])

 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/629709.htmlTechArticle这是我之前写的一段form代码 form name=form1 method=post action= table width=200 border=0 cellspacing=0 cellpadding=0 tr tdlabel input type=text name=a1 / /label/td tdinpu...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn