Put Data In a URL with PHP

Date: 10/12/2015, Author: Lostwake, Category: PHP Quick Reference

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'];

Comments: