Advertisements
Advertisements
Question
Write the purpose Get method and Post method.
Short/Brief Note
Advertisements
Solution
All input values are synchronized and sent to the server via POST method or GET method. Method is an attribute form tag in HTML. Once the data reaches the server, two PHP variables such as $_POST and $_GET collects the data and prepares the response accordingly.
- Post Method:
The input data sent to the server with POST method is stored in the request body of the client’s HTTP request. - Get Method:
The input data sent to the server with POST method via URL address is known as a query string. All input data are visible by a user after they clicks the submit button.
shaalaa.com
Is there an error in this question or solution?
