Headers with Vars

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
nickman013
Forum Regular
Posts: 764
Joined: Sun Aug 14, 2005 12:02 am
Location: Long Island, New York

Headers with Vars

Post by nickman013 »

Hello,

I have a header with variables in it. Apparently they dont work.

Code: Select all

header('Location:http://www.site.net/displaymuot.php?muotid=$who');
How can I make that work?

Thanks!!!!!!!!!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Single quote strings don't parse variables.

Some reading: http://php.net/language.types.string
User avatar
nickman013
Forum Regular
Posts: 764
Joined: Sun Aug 14, 2005 12:02 am
Location: Long Island, New York

Post by nickman013 »

thanks!!
Post Reply