Home  >  Article  >  Backend Development  >  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
WBOYOriginal
2016-07-21 15:08:14773browse

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...
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