Jump to content

[SOLVED] Conditional IF statement to redirect user


Voodoo Jai

Recommended Posts

I  have an IF statement that if the condition is not met then the user is redirected to another page. I have this piece of code but it does not work I dont understand the manual, so could someone please explain how to do it.

 

IF ($ShowResult < 11)
{
   echo "View the takeaway details requested";
}
ELSE
{
   http_redirect('http://www.lostmymenu.com/newpage.php');
}

 

As ususal many thanks in advance

 

VoodooJai

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.