हिंदी

PHP Form Handling

Advertisements
  • GET Method
  • POST Method

PHP Form Handling

Whenever a user fills out a form on a webpage and submits it, the form data is sent for processing to a PHP file.  The form data can be sent to the PHP file via two ways, the POST and GET method.  

GET Method 

$_GET is treated as a superglobal, which means they are always accessible, regardless of scope. It can be accessed from any function, file or class without having to do anything special. Information sent through GET Method is visible to everyone and has limit on the amount of information to send.  

POST Method 

$_POST  is also treated as a superglobal, which means they are always accessible, regardless of scope. The information sent through POST is invisible to everyone. POST has no limits on the amount of information. 

If you would like to contribute notes or other learning material, please submit them using the button below.
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×