Home>Article>Backend Development> Interaction between PHP and Web pages
This article mainly introduces the interaction between PHP and Web pages. It has a certain reference value. Now I share it with everyone. Friends in need can refer to it
1.form form default situation The way to submit data is the get method.
2. The predefined variables used by PHP scripts to process form data are $_GET, $_POST (case sensitive)
Code example (Pay special attention to adding the array when adding the checkbox attribute name)
##simpleTest.htmlsimpleFoem. phpInsert title here
"; echo "学过的编程语言:"; foreach ($_POST["language"] as $value){ echo $value; } }else { echo "用户名密码错误"; } } ?>The above is the entire content of this article. I hope it will be helpful to everyone's study. For more related content, please pay attention to the PHP Chinese website! Related recommendations:
Introduction to installing xhprof for performance analysis in PHP 7.1
The above is the detailed content of Interaction between PHP and Web pages. For more information, please follow other related articles on the PHP Chinese website!