Basic PHP Form Handling

Publié le: 08 juin 2018
sur la chaîne: airish nina
318
28

Basic PHP Scripting Form Handling.
Both GET and POST create an array This array holds key/value pairs, where keys are the names of the form controls and values are the input data from the user.

Both GET and POST are treated as $_GET and $_POST. These are superglobals, which means that they are always accessible, regardless of scope - and you can access them from any function, class or file without having to do anything special.

$_GET is an array of variables passed to the current script via the URL parameters.
Information sent from a form with the GET method is visible to everyone (all variable names and values are displayed in the URL). GET also has limits on the amount of information to send. The limitation is about 2000 characters. However, because the variables are displayed in the URL, it is possible to bookmark the page. This can be useful in some cases.

$_POST is an array of variables passed to the current script via the HTTP POST method.
Information sent from a form with the POST method is invisible to others (all names/values are embedded within the body of the HTTP request) and has no limits on the amount of information to send.
Moreover POST supports advanced functionality such as support for multi-part binary input while uploading files to server.

Pasensya n sa video. If may mali, I stand corrected. Salamat (^__^)


Sur cette page du site, vous pouvez voir la vidéo en ligne Basic PHP Form Handling durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur airish nina 08 juin 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 318 fois et il a aimé 28 téléspectateurs. Bon visionnage!