PHP FORMS:
FORM COMPONENTS:
Some of the form components are
PHP FORM METHODS:
Two main Php form methods are,
Example:
Display In Browser:
Your Name :
// consider we are entering name as StudentsBlog100
Output:
The above figure shows that, the parameters are passed through URL..
PHP POST METHOD:
Syntax:
Example:
Display In Browser:
Your Name :
// consider we are entering name as Hello StudentsBlog100..
Output:
The above figure shows that, in POST method, parameters are not passed through URL..
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:
Your Name :
PHP GET METHOD |
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.
Your Name :
PHP POST METHOD |
No comments:
Post a Comment