Jump to content

[SOLVED] how to insert variables into header()


advancedfuture

Recommended Posts

I am trying to insert variables into header() but can't seem to get it working. I've tried the following

 

header( "Location: index.php?c=".$city."&&st=".$state." );

 

as well as

 

header( "Location: index.php?c=$city&&st=$state" );

 

both with no such luck... what is the proper syntax for doing this?

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.