LOL.
Technically, its not hard at all. It's a simple get query where you assign a field using the url.
For example:
http://www.azbilliards.com/offer.php?ref=1
Where the variable (field if you like in the page or a database) you wish to populate is the ref field, with your id, which is 1...