I am working on a project that requires me to redirect the user to a php page. And the name of the page to be redirected to is stored as a php variable.This is what I tried. Suppose $var is the name of the php file. I want to do something like this,
if(condition)
{
header("Location: '$var'.php");
}
How do I do this?