PHP: Get form data and embed HTML into PHP scripts, form php
When php accepts information submitted through an HTML form, it saves the submitted data in a Global Array. We can call the system-specific automatic global variable array to obtain these values. Common automatic global variables are as follows:
1,GETMethod
Function: get the data submitted in get mode.
Format: $ _ GET ["formelement"]
2,POSTMethod
Function: obtains the data submitted in post mode.
Format: $ _ POST ["formelement"]
3,REQUESTMethod
Function: obtain the data submitted in any way. The $ _ REQUEST automatic global variable contains all the GET, POST, COOKIE, and FILE data. If you do not care about the data source.
Format: $ _ REQUEST ["formelement"]
Check box and list box (the name is in the form of an array, for example, "select []". You can directly use $ _ POST ["select"] to obtain its value)
<! Doctype html>
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.