Jump to content

Header question (NOT a "headers already sent" question)


blinks

Recommended Posts

Can anyone explain why this bit of code works -

 

header("Location: http://localhost/workflow/new.php?cat=select_workflow"); 

 

but this doesn't -

 

$url = "http://localhost/workflow/new.php?cat=select_workflow"
header("Location: $url");

 

nor does

header('Location: '.$url); 

 

TIA

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.