Forms – Get Variable continued
The file “welcome.php” can now use the $_GET variable to obtain all the required information which is shown on the address bar. As it does that, all the name fields of the form will automatically be the ID keys in the $_GET array variable.
Welcome .
You are years old!
The use of the $_GET variable results in all data being shown in the address bar which would not be well suited for obtaining user names and passwords. The use of the said variable is practiced for it allows pinpoint bookmarking allowing specific pages (like the user’s information page) that can easily be located with the first few values. The limitation of 100 characters is somewhat limiting but it is very useful in some cases as we will show in future posts.
Filed under: Basic Programming, Sample Code by Avatar
