In php, the form uses both POST and GET to pass parameter descriptions. In the form, we have a method attribute, which enables the form to be post and get. in php, we should use the corresponding get and post to receive it, the following describes method parameter description 1. in the form, we have a method attribute, which enables the form to be post and get. in php, we should use the corresponding get and post to receive it, the following describes the method parameters.
1. I used it before. when submitting form post, the url of the action passes the get parameter, which can be obtained by the server:
| The code is as follows: |
|
|
Print_r ($ _ GET );
Print_r ($ _ POST );
?>
|
2. if your form submission type is get, the parameters passed in the url cannot be obtained:
| The code is as follows: |
|
|
/**
* Test get and post submission.
* @ Link (http://www.bKjia. c0m)
*/
Print_r ($ _ GET );
Print_r ($ _ POST );
?>
|
When 1...