Page 1 of 1

how to redirect a page using the if else statement ?

Posted: Sun Feb 21, 2016 8:12 pm
by sathya
Hi ,
I want to redirect the users when if statement got failed.like below

If (status=ok)
{
echo Execute the code here;
}
else
{
redirect to some other page// here I want to know the code for redirect the page
}

Thanks for reading this.kindly suggest the solution

Re: how to redirect a page using the if else statement ?

Posted: Sun Feb 21, 2016 9:23 pm
by Celauran