Click here to Skip to main content
15,884,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear sir,

i want to do whene if condition is true then go to next page...


PHP
$num="5";
if(num>5)
{
//i want to go on login.php page.
}
else
{
echo "wrong input";
}

plz help...
Posted
Updated 4-May-18 0:32am
v2

PHP
header("Location: login.php");
die();
 
Share this answer
 
header("Location: login.php");
 
Share this answer
 
Comments
Rajkumar_007 29-Apr-14 5:39am    
Thank u... :)
if($condition)
{
echo '<meta http-equiv="refresh" content="1; URL=index.php" />';
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900