justinbriggs1 Posted December 1, 2008 Report 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 Report 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 Report 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now