PHP Questions Home

Categories

Arrays
Files
Forms
Functions
Images
MySQL
Numbers
Others
Strings
Website


PHP Functions

PHP Functions


More PHP

Top Questions
Ask a Question

How can I access information sent through GET on a form?


If you have a dynamic site or are passing data through the URL, then you will need to use GET to access the variables sent from page to page.

To access the data sent this way, you use the $_GET array like this:

Imagine you have a parameter called 'name' in the URL, here's how to access it:

www.myurl.com?name=johnny

$youare = $_GET["name"]; this will now contain the value 'johnny'


More forms PHP Questions

How do I email the contents of a form to me?
How do I check that a valid email address is entered?
How do I remove HTML tags from a string?
How do I know if magic quotes is switched on?
How do I escape data that is going into a database?