- GET, POST, SESSION, SERVER, FILES, huh???
- forms: $_GET['formVar'] or $_POST['formVar']
- sessions: $_SESSION['sessionVar']
- To access the query string of an url (i.e. http://localhost/myFile.php?myVar1=5&myVar2=hello+world), you will need to use $_GET['myVar'].
- Want to find out about the server or visitor statistics? Use $_SERVER.
- One of the greatest benefits are that these variables are always global in scope. Very nice for functions!
NEXT
PREVIOUS
Master Index