How to get data from form array in php_PHP tutorial

WBOY
Release: 2016-07-13 17:10:04
Original
1078 people have browsed it

这是我之前写的一段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...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!