<?php $rid = $_GET['rid']; $url = "http://www.sponsor.com?rid=" . $rid; echo "<a href=\"$url\">click me<a/>"; ?>