Advertisements
Advertisements
प्रश्न
Explain Form Handling methods.
थोडक्यात उत्तर
Advertisements
उत्तर
- When the user keying the input data in HTML controls and clicks the submit button the request will be generated and reaches a PHP file which is mentioned in the FORM tag under the Action attribute.
- 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 the query string.
- All input data are visible by a user after they clicks the submit button.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
