Jump to content

[SOLVED] need header location to be in a folder


rnintulsa

Recommended Posts

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.

 

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.