GET is the method used by the browser to request normal web pages, but it can also be used to submit form data. Type a search term in to Google and hit search – notice how the results page has your query encoded in to the URL shown in your browser's task bar.
GET is ideal for applications like search engines where is useful to bookmark the resulting page. You will be able to do it as the browser will append a query string (a string made of key-value couples) to the URL.
GET is limited in that it can only handle small amounts of data.
Variables sent to a PHP script using the GET method are made available to your program as items in the $_GET global array. For example, data from a text field <input type=”text” name=”firstname”> sent using GET will be available to your program as $_GET['firstname'] .
From a query string like:
you will be able to fetch parameters printing the $_GET array
<span style="color: #ff0000;"><?php</span>
echo "<pre>";<br /> print_r(<strong>$_GET</strong>);<br /> echo "</pre>";
<br /> <span style="color: #ff00ff;"> /* this will be the content of <strong>$_GET</strong><br /> Array
[name] => john
[surname] => doe
)<br /> */</span>
<span style="color: #ff0000;">?></span>