rnintulsa Posted September 7, 2008 Share Posted September 7, 2008 Hi, I need my header location to go to a folder called companies and call the particular 'company'.php page up. I need to put the 'company'.php pages in their own folder called companies. this is the current line: header("Location: {$data['company']}.php"); I have tried: header("Location: {$data[companies/'company']}.php"); and tried: header("Location: {$data[../companies'company']}.php"); and some different ways with the quotes. Can anyone point me in a direction here? Thanks a lot. Link to comment https://forums.phpfreaks.com/topic/123104-solved-need-header-location-to-be-in-a-folder/ Share on other sites More sharing options...
JasonLewis Posted September 7, 2008 Share Posted September 7, 2008 You mean like this? header("Location: companies/{$data['company']}.php"); Link to comment https://forums.phpfreaks.com/topic/123104-solved-need-header-location-to-be-in-a-folder/#findComment-635755 Share on other sites More sharing options...
rnintulsa Posted September 7, 2008 Author Share Posted September 7, 2008 Thank you ProjectFear. I had wondered about trying something like that too. Newbie here. It works great. I love this stuff. Link to comment https://forums.phpfreaks.com/topic/123104-solved-need-header-location-to-be-in-a-folder/#findComment-635760 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.