<?php $ref = isset($_GET["ref"]) ? $_GET["ref"] : ""; if (empty($ref)) { $ref = 'Ziyaretçi'; } echo ''.$ref.' sizi bu sayfaya yönlendirdi'; ?>