Home > Backend Development > PHP Tutorial > Detailed explanation of processing single-name and multi-value forms_PHP tutorial

Detailed explanation of processing single-name and multi-value forms_PHP tutorial

WBOY
Release: 2016-07-21 15:08:14
Original
784 people have browsed it

Just use a simple multi-select select:

Copy the code The code is as follows:

echo<<




EOT;
/*Output the value obtained by GET (array)*/
if (isset ($_GET["submit"])) {
foreach($_GET["listVar"] as $value){
echo $value." }
}
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327484.htmlTechArticleJust use a simple multiple-select select: Copy the code as follows: ?php echoEOT form action="" method=get select name="listVar[]" multiple="multiple" size=3 optionfirst/option...
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