I always forget the syntax for this so I'm posting it here for anyone who needs it.
The syntax for URL Encoding is as follow:
echo 'Link Code';
The text after the question mark is the $_GET variable then a string can be placed after the equals sign.
To get the information back out use the following:
$data = $_GET['foo'];