We will take a more in depth look into “GET” function. When the form action uses the “GET” method the browser appends the the values the user placed in the form in the URL. I am sure all of you have seen a browser with a long url comprising on “=” and “?” in a serious of combinations , and if you every took a details looked you would probably seen some of the information that you typed in amongst the confusing looking url.
Let’s make some sense of the string, it follows the format of variables name and value. So in the string or as it is technically known is called the “query string”.
url/getform.php?website=phptutorialsite.com&toturiallanguage=php
This means that the value of the variable website = phptutorialsite.
You will notice that that i added in an “&”. The “&” means that we have added another variable into the url, so we are “adding other variables to the string.
So that string reads.
website = phptutorialsite.com
toturiallanguage = php
That was just a simple example, but things can get very complex when you have string with spaces and characters. Filled with characters and spaces and symbols. With this said we enter the world of URL ENCODING. This website will give you the codes used in encoding characters into an URL
http://www.w3schools.com/TAGS/ref_urlencode.asp
The beauty of the encoding is that it is all done automatically so when you are developing and using the GET function you don’t need to worry about doing the url encoding.
In your php file, in out case would be “getform.php” you will just use the variables
echo $website and echo tutoriallanguage.
The disadvantage or problem with using the GET method is that the information is passed through the URL and there is a limit to how much information you can pass in the URL.


