7. PHP Special Variables

GET Variable :
  • The built-in $_GET function is used to collect values from a form sent with method="get".
  • Information sent from a form with the GET method is visible to everyone (it will be displayed in the browser's address bar)  
  • It has limits on the amount of information to send.
[ Code ] :
http://pastebin.com/6kfYqfvq

POST Variable :
  • The built-in $_POST function is used to collect values from a form sent with method="post".
  • Information sent from a form with the POST method is invisible to others and has no limits on the amount of information to send.  
[ Code ] : 
http://pastebin.com/FGazFkEY

0 comments:

Post a Comment