I did look at that other post and there were a few questions unanswered and answers that were rubbish.
The
$_Get is useful for passing data from one page to another in the URL bar. It means that you do not need a form. I myself use the GET when making pages display certain info.
I will have a hyperlink.
<a herf=www.mmowned.com/Index.php?step=exploits>Exploits Section</a>
The next page you go onto ...
<?php
//This is used when clicking a hyperlink to display certain pieces of data
if $_GET['step'] == exploits {
will display some crap
}
?>
If you want to put a variable at the end. Lets say you are listing a database of people and when you click on someones name it sends you to their profile with some data on it ...
<a href=profiles.com/profile.php?profileID=$Users_ID>$Users_Name's Profile</a>
If you are listing everyones names from the database onto a page you would make an SQL query that loops and each time selects one person, pulls out their ID and Name then puts it into the hyperlink as above.
So lets say I am ID 1 in database ... the URL will end up
profiles.com/profile.php?profileID=1
Now you use the $_GET to list the users profile.
<?php
User_ID=$_GET['profileID'];
//Sql query which calls all the data for that User_ID here
$User_Name
$User_Address
$User etc ...
?>
When I first started PHP coding I didn't know any of this. My first project I made a browser based game. For it I made it display all the names of the signed up people and allowed them to make their one profiles. When I first thought about it, I thought "WOW so I am going to have to make a new page for each users profile? :s". Then I realise I could use the GET to call an ID, which I could use to call certain pieces of data from the database. Meaning I only had 1 page.
I felt like a fool when I worked this out but its easy stuff.
If you are using data like Username/Passwordy type of things you dont really want it coming up in the URL. Use $_POST for those situations
If you have any questions post below. It is like 3:30AM here so I am very tierd and may of not expliained it properly, or used wrong grammar and confuzed the hell out of you.