PHP Get form data and HTML embedded PHP script

WBOY
Release: 2016-08-08 09:21:32
Original
1324 people have browsed it
When PHP accepts information submitted through an HTML form, it will save the submitted data in a global array. We can call the system-specific automatic global variable array to obtain these values. Commonly used automatic global variables are as follows:
1, GETmethod
Function: Get the data submitted by get method
Format: $_GET["formelement"]
2, POSTmethod
Function: Get the data submitted by post method Data
Format: $_POST["formelement"]
3, REQUESTMethod
Function: Get data submitted in any way, $_REQUEST automatic global variable contains all GET, POST, COOKIE and FILE data, if you don't care about the data source.
Format: $_REQUEST["formelement"]

Check box, list box (the name is in the form of an array such as: "select[]", use $_POST["select"] directly when getting its value That’s it)





无标题文档





 用户名: 密码:

 订单号:
">
Copy after login

Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger’s permission.

The above introduces PHP to obtain form data and HTML to embed PHP scripts, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
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!