Use the POST () method in php to summarize instances

Source: Internet
Author: User
Tags html header
& Amp; nbsp; submitting to obtain form data is the most common operation in form applications, it is often necessary for the PHP background to obtain various data submitted on the front-end form page from the front-end page. There are two ways to pass form data: POST () and GET. Which method is used to obtain data is specified by the & amp; lt; form & amp; gt; method attribute of the form, the following describes the specific application of the two methods in Web forms. Using POS... to submit and obtain form data is the most common operation in form applications. it is often necessary for PHP to obtain various types of data submitted on the front-end form page from the front-end page. There are two ways to pass form data: POST () and GET. Which of the following methods is used to obtain data? The method attribute of the form is specified. The following describes the specific application of the two methods in the Web form. When using the POST () method to submit a form, you only needSet the attribute method in the form to POST. The POST () method does not depend on the URL and is not displayed in the address bar. The POST () method can transmit data to the server without restrictions, and all submitted information is transmitted in the background. the user cannot see this process on the browser end, and the security will be higher. Therefore, the POST () method is suitable for sending a confidential (such as a bank account) or large-capacity data.

1. The POST () method and GET () method for submitting form data in php

Introduction: differences between get and post methods in Ajax 1. basic differences between get () and post () 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 form and their content in the html header and send them to the URL address referred to by the ACTION attribute. You cannot see this process. 2. for the get method, the server uses Re...

5. about receiving data from ios through the interface in the yii2 framework

Introduction: use Yii ::$ app-> request-> post () to receive data from ios. print the received data and the value is null. If $ _ data = empty ($ _ POST )? Json_decode (file_get_contents ('php: // input'), TRUE): $ _ POST; received from ios...

6. yii2 Controller Ajax operation example

Introduction: yii2 Controller Ajax operation example: This article describes the yii2 Controller Ajax operation method. Share it with you for your reference. The details are as follows: public function actionSample () {if (Yii: $ app-> request-> isAjax) {$ data = Yii :: $ app-> request-> post (); $ searchname = explode (":", $ data ['searc

7. wordpress custom field output code design _ PHP Tutorial

Introduction: wordpress custom field output code design .! -- For example, if this is a slide -- p class = flexslider? Php if (have_posts (): the_post ();? Ul class = slides? Php $ images = get_post_meta ($ post-ID, images, false); //

8. PHP 9 usage of Super global variables (II) _ PHP Tutorial

Introduction: Usage of php9 Super global variables (2 ). Let's talk about $ _ GET () and $ _ POST () today (). In fact, it is easy to understand. it can be seen from the surface that it is to obtain the data of the post and get Forms. In fact, this is also the case.

9. automatic verification and application of ThinkPHP forms. thinkphp form verification _ PHP Tutorial

Introduction: automatically verifies ThinkPHP forms, and verifies thinkphp forms. ThinkPHP forms are used for automatic form verification. thinkphp form verification uses the TP 3.2 Framework public function add_post () {// verification rules $ rule = array ('name', 'require ', 'enter the name', 1), // required

10. example of automatic ThinkPHP form verification, thinkphp example _ PHP Tutorial

Overview: examples of automatic ThinkPHP form verification and thinkphp form verification. ThinkPHP form automatic verification example, thinkphp example uses TP 3.2 Framework public function add_post () {// verification rule $ rule = array ('name', 'require ', 'enter the name', 1), // required

[Related Q & A recommendations ]:

How long will javascript-ajax requests wait?

$. Ajax cross-origin options

After the javascript-vue code is built, the backend interface cannot be executed after it is deployed to the Internet.

Javascript-what is the getPost () method? is there a source?

Android-View. post ()

The above is the details of using the POST () method in php to summarize instances. For more information, see other related articles in the first PHP community!

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.