I have a php header location problem what i am doing is getting some data from my database and then making a if else check and depending on that i am redirecting the user to the next page ,here goes my code
if($claim_status == 'Pending Verification')
{
$page = "pending-verification.php?verifyid=".$id."";
}
elseif($claim_status == 'Pending PO Clearance')
{
$page = "po-clearance.php?verifyid=".$id."";
}
elseif($claim_status == 'Payment Approved')
{
$page = "payment-approved.php?verifyid=".$id."";
}
elseif($claim_status == 'Payment Receipt')
{
$page = "confirm-claim.php?verifyid=".$id."";
}
elseif($claim_status == 'Billing')
{
$page = "billing.php?verifyid=".$id."";
}
elseif($claim_status == 'Billed')
{
$page = "billed.php?verifyid=".$id."";
}
header("Location:$page");
$claim_status is a variable i am getting from my database.
The error i am getting is ( this page has a redirect loop) how can i take care of this Please help me
Thank You
header("Location:$page");->print("Location:$page");and see what gets printed.