PHP wont header ! redirect.
#3

I don't know about php that much, but this part kind of bugging me:
PHP код:
if($rows==1){ 
 
$_SESSION['username'] = $username
 
header("Location: profile.php"); // Redirect user to index.php 
 
}else{ 
 echo 
"random text"
 } 
 }else{ 
 } 
An if statement can only have one else.
Reply


Messages In This Thread
PHP wont header ! redirect. - by Zeus666 - 16.03.2018, 23:09
Re: PHP wont header ! redirect. - by Zeus666 - 16.03.2018, 23:33
Re: PHP wont header ! redirect. - by Eoussama - 17.03.2018, 00:03
Re: PHP wont header ! redirect. - by jasperschellekens - 17.03.2018, 02:16
Re: PHP wont header ! redirect. - by BroZeus - 17.03.2018, 05:36
Re: PHP wont header ! redirect. - by Zeus666 - 17.03.2018, 08:21
Re: PHP wont header ! redirect. - by Zeus666 - 17.03.2018, 10:13
Re: PHP wont header ! redirect. - by jasperschellekens - 17.03.2018, 11:06
Re: PHP wont header ! redirect. - by Zeus666 - 17.03.2018, 16:32
Re: PHP wont header ! redirect. - by jasperschellekens - 17.03.2018, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)