<?php $ref=@$HTTP_REFERER; $exr = explode("q=",$ref); $exk = explode("&",$exr[1]); $sekeyword = "$exk[0]"; echo $sekeyword; ?>