O'Reilly logo

PHP for Teens by Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Predefined Variables and Arrays

PHP includes some predefined variables—those it designates. Some of these variables are created by the web server or sent by GET or POST forms (which I went over in Chapter 3). You can use these variables within your program for a lot of things. Before we move on, let’s talk a little about the difference between GET and POST.

GET Versus POST

In all of your forms, you have the option of using GET or POST. Both are useful in different cases, so you should know the difference between the two. When using a GET form, all of the variable data are passed along in the URL’s address bar. This means that you can look at the URL and see all the variables and their values. On the other hand, POST hides all the variables from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required