PHP short notes

PHP short notes

Get and Post (form handling).

  1. Both get and post creates an array (get and post are superglobals).

  2. $_GET is an array of variables passed to the current script via the URL parameters.

  3. $_POST is an array of variables passed to the current script via the HTTP POST method.

  4. When to use Get and Post-> get is used for less secure information however passwords couldn't be used with get and post is used to transfer form information(multipart binary input).