hai...
i want to redirect two pages in a single php page using if... else....
if(...)
{
...
...example.php
}
else
{
...
example1.php
}
page redirect
Moderator: General Moderators
Firstly , I think code is not in proper tags, You need to go through Forum rules. Secondly the question should be in PHP code forum but not in Linux. Anyhow You need to go through PHP header function
Code: Select all
if($yourcondition){
header('Location:example.php');
}else{
header('Location:example1.php');
}