justinbriggs1 Posted December 1, 2008 Share Posted December 1, 2008 I can't seem to get the syntax right on this:header('Location:bonusadd.php?FILE=nofile&bonus_name='$bonus_name'');What am I doing wrong? Link to comment Share on other sites More sharing options...
jeffman Posted December 1, 2008 Share Posted December 1, 2008 Can't use single quotes inside single quotes without escaping them. And your variable won't get interpolated unless it's in double quotes. But do you really want any quote marks in your query string in the first place? Try this:header("Location:bonusadd.php?FILE=nofile&bonus_name=$bonus_name"); Link to comment Share on other sites More sharing options...
justinbriggs1 Posted December 1, 2008 Author Share Posted December 1, 2008 I can't seem to get the syntax right on this:header('Location:bonusadd.php?FILE=nofile&bonus_name='$bonus_name'');What am I doing wrong?Nevermind, I got it! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.