Original post address:Http://www.zu14.cn/2008/11/27/56789/
Helpless after 90: When we were born, the milk powder was poisonous,When we get healthy, we can only eat junk food,When we went to kindergarten, we started charging fees,When we graduated
When posting a post, a website usually needs to operate on multiple data tables. For example, to post a post, you need to insert the post table, and then insert the post tag post_tag relational table, insert the post_user post follow table, update
Difference between the Post and Get methods in Form form, Form form postget
Form provides two data transmission methods: get and post. Although they are all data submission methods, they are indeed quite different in actual transmission, and may
Source Address: http://hi.baidu.com/eveready/blog/item/585bbb30fbcee915eac4af27.html
I. Differences of principles
Generally, you can enter a URL in your browser to access resources by using the get method. In form submission, you can specify the
I. Question proposalNotice the action in the form: getpostservlet/getpost. do? Param4 = param4This action has a parameter param4,If the get method is used for submission, the backend cannot receive this parameter;If the post method is used for
I. Differences of principles
Generally, you can enter a URL in your browser to access resources by using the get method. In form submission, you can specify the submission method as get or post. The default method is get submission.
HTTP defines
HTTP defines different ways to interact with the server, with 4 basic methods, namely get,post,put,delete. URL full name is a resource descriptor, we can think: a URL address, which is used to describe a network of resources, and HTTP
6 methods for sending get and post requests in php are concise summary, and 6 are get6
Method 1: Use file_get_contents to get the content in get mode:
Method 2: Use fopen to open the url and get the content:
Method 3: Use the file_get_contents
1. The Get method passes the user's data through a URL request, connects the field names in the form with their contents, paired strings, and places the URL of the program that the Action property refers to, such as [url]http://www.jincaib.com/index.
HTTP POST GET Essential differences in detailA principle differenceGenerally in the browser to enter the URL access to resources are through the Get method, in the form submission, you can specify the way to submit the method is get or post, the
There are two ways to choose from: first, handwriting code. Second: Use the HttpClient php class library
Method 1:
Copy codeThe Code is as follows: $ Flag = 0;
// Data to be post
$ Argv = array (
'Var1' => 'abc ',
'Var2' => '');
// Construct the
Here are two ways to choose: First: Handwriting code. Second: Using HttpClient PHP class Library
The first method:
Copy Code code as follows:
? Php
$flag = 0;
The data to post
$ARGV = Array (
' var1 ' => ' abc ',
' Var2 ' => ' How
If you want to use the Fsockopen function we must set the Allow_url_fopen = on in the php.ini to the open state.
Cases
Fsockopen () Example
code is as follows
copy code
$fp = Fsockopen ("www.example.com",
A summary of good posts, not original:The Get Back button/refresh is harmless, post data is resubmitted (the browser should tell the user that the data will be resubmitted).
Get bookmarks can be collected, post bookmark is not collectible.
get can
As a computer system, input as a non-core device is indispensable, such as hardware, software is also the case. Imagine a powerful computer without input, unlike a piece of scrap iron that only consumes electricity and makes a buzzing noise. The
HTTP defines different ways to interact with the server, with 4 basic methods, namely get,post,put,delete. The URL full name is a resource descriptor, it can be said that: a URL address, which is used to describe a network of resources, and HTTP Get,
A principle differenceGenerally in the browser to enter the URL access to resources are through the Get method, in the form submission, you can specify the way to submit the method is get or post, the default is get commitHTTP defines different
Original: http://www.cnblogs.com/hyddd/archive/2009/03/31/1426026.htmlHTTP defines different ways to interact with the server, with 4 basic methods, namely get,post,put,delete. URL full name is a resource descriptor, we can think: a URL address,
HTTP defines different ways to interact with the server, with 4 basic methods, namely get,post,put,delete. URL full name is a resource descriptor, we can think: a URL address, which is used to describe a network of resources, and HTTP
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.