<?php //record the link in the db or whatever here //but don't echo anything header("Location: $url"); ?>