if (empty($userName)) { include("userdata.php"); } // tried to do this using the Location header command in php but it kept insisting // that data was already being sent in the userdata.php file, even though it wasn't // so just did it in Javascript instead echo '
'; ?>