PHP FORMS - GET AND POST METHODS - PHP LESSON 16 STUDENTSBLOG100 - Anna University Multiple Choice Questions

PHP FORMS - GET AND POST METHODS - PHP LESSON 16 STUDENTSBLOG100

PHP FORMS:
Php forms will carry many information's from the user and send it to the server for processing data.

FORM COMPONENTS:
Some of the form components are
  • Text
  • Label
  • Menu
  • Button
  • Text area
  • Check box
  • Radio Button

PHP FORM METHODS:
Two main Php form methods are,
  • GET METHOD
  • POST METHOD

PHP GET METHOD:
  • It carries all the users information in URL
  • It is not Secure
  • Parameters remain in browser history because they are part of the URL
  • GET method should not be used when sending passwords or other sensitive information.
Syntax:

Example:

Display In Browser:

Your Name :

// consider we are entering name as StudentsBlog100
Output:
PHP GET METHOD
PHP GET METHOD
The above figure shows that, the parameters are passed through URL..

PHP POST METHOD:
  • It is Secure than GET method.
  • Parameters are not saved in browser history.
  • POST method used when sending passwords or other sensitive information.
Syntax:
Example:

Display In Browser:

Your Name :

// consider we are entering name as Hello StudentsBlog100..
Output:
PHP POST METHOD
PHP POST METHOD
The above figure shows that, in POST method, parameters are not passed through URL..

Lesson 15 Previous | Main Page | Next Lesson 17

No comments:

Post a Comment