i am using this code o direct users to another page, the header function works well on my test server but wont work when i import to a live server. what am i doing wrong?
if (isset ($_POST['submit1']))
{
$_SESSION['user_session']= $user_session;
header ("location: profilereg.php ");
}
I have even tried changing the page the header is pointing to, but it still doesn't work, could it be an error from the variable i am trying to pass to the next page? or am i missing something here?