And when you looked in your php.ini file (to avoid confusion) it's called "Register Globals"DrP said:$variable is a variable within the page being worked on.
$_POST['variable'] was passed to the page from a form using the method POST.
$_SESSION['variable'] was passed through the use of a session cookie.
$_GET['variable'] is passed through the url or from a form using the method GET.
If you have Global Variables turned on in your php.ini then all of the above would be accessible through $variable, I think. But if Global Variables is turned off then you need to refer to the variables correctly by type - as above. It's safer to Global Variables turned off btw.
There are others, too.
Got it here: http://www.w3schools.com/php/php_forms.aspnamenotfound said:$_POST is a Superglobal, it "posts" the data received from a form that uses the method of post.
So if you had
you could use $_POST to display the data you got from the form on a page.
Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.
If you're not already familiar with forums, watch our Welcome Guide to get started.
Join over 807,865 other people just like you!