PHP form submit data get, post instance details. This article will introduce you to the get and post instances of PHP form submission data. For more information, see reference. 1. what is a form? Simply put, this article will introduce you to a
This article will introduce you to the get and post instances of PHP form submission data. For more information, see reference.
1. What is a form?
A form is simply a form tag. That is, .
2. Functions of forms
A form collects data submitted by the
1. What is a form?A form is simply a form tag. That is, .2. Functions of formsA form collects data submitted by the client and submits the data to the server.For example, when logging on to a website, you need to enter your username and password to
This article to introduce an introductory tutorial on PHP form submission Data Get,post instance, there is a need to understand the students can enter the reference.
1. What are forms
The so-called form, said the simple point is a pair of form tags.
When PHP uses post to transmit data, action = & quot; login. php? Id = 2 & quot;, click submit, $ _ POST [& quot; id & quot;] cannot be displayed, that is, it is not set! PHP sets action = "login. php? Id = 2 When PHP uses post to transmit data,
When PHP uses post to transmit data, action & quot; login. php? Login. php ?, Click SUBMIT. $ _ POST [id] cannot be displayed, that is, it is not set! However, for example, when PHP uses post to transmit data, action = "login. php? Id = 2 ", click
When PHP uses post to transmit data, action & quot; login. php? Login. php ?, Click SUBMIT. $ _ POST [id] cannot be displayed, that is, it is not set! However, for example, when $ _ PHP uses post to transmit data, action = "login. php? Id = 2 ",
There are a lot of previous talk about PHP curl function to implement post submission data, let me introduce a kind of commit XML to submit form data.
Example 1
Curl uses post to submit XML data
The code is as follows
Copy Code
When PHP uses post to transmit data, actionlogin. php ?, Click SUBMIT. $ _ POST [id] cannot be displayed, that is, it is not set! PHP Form action $ _ POST []
PHP sets action = "login. php? Id = 2 ",
Click SUBMIT. $ _ POST ["id"] cannot be
1. Get adds the parameter data queue to the URL referred to by the Action attribute of the submission form. The values correspond to each field in the form one by one and can be seen in the URL. Post uses the http post mechanism to place fields in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.