![]() ![]() However, because the variables are not displayed in the URL, it is not possible to bookmark the page. Moreover POST supports advanced functionality such as support for multi-partīinary input while uploading files to server. Has no limits on the amount of information to send. (all names/values are embedded within the body of the HTTP request) and Information sent from a form with the POST method is invisible to others Note: GET should NEVER be used for sending passwords or other sensitive information! GET may be used for sending non-sensitive data. However,īecause the variables are displayed in the URL, it is possible to bookmark the Variable names and values are displayed in the URL). Information sent from a form with the GET method is visible to everyone (all $_POST is an array of variables passed to the current script via the HTTP POST method. $_GET is an array of variables passed to the current script via the URL parameters. Which means that they are always accessible, regardless of scope - and you can access them from any function,Ĭlass or file without having to do anything special. PHP if(isset(POSTname)) echo htmlspecialchars(POSTname). Keys are the names of the form controls and values are the input data from the user.īoth GET and POST are treated as $_GET and $_POST. The PHP super globals GET and POST are used to collect form-data. PHP Examples PHP Examples PHP Compiler PHP Quiz PHP Exercises PHP Certificateīoth GET and POST create an array (e.g. PHP - A Simple HTML Form The example below displays a simple HTML form with two input fields and a submit button: Example Get your own PHP Server
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |