You know that if you want to redirect a user in PHP you can use the header function: header(\'Location: http://smowhere.com\');