Home > php教程 > php手册 > php获取表单数组的数据方法

php获取表单数组的数据方法

WBOY
Release: 2016-06-13 10:11:54
Original
1345 people have browsed it

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


 
   
     
     
     
   
   
     
     
     
   
   
     
     
     
   
 


print_r($a1);
?>


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


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

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

 

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template