seany123 Posted August 14, 2009 Share Posted August 14, 2009 all i need to do is make this line work... header('Location: profile.php?id=$_GET['id']'); i tried this... header('Location: profile.php?id='$_GET['id']''); and this header('Location: profile.php?id="$_GET['id']"'); and this header('Location: profile.php?id=\"$_GET['id']\"'); Quote Link to comment https://forums.phpfreaks.com/topic/170275-solved-nooby-help/ Share on other sites More sharing options...
JonnoTheDev Posted August 14, 2009 Share Posted August 14, 2009 header("Location:profile.php?id=".$_GET['id']); Quote Link to comment https://forums.phpfreaks.com/topic/170275-solved-nooby-help/#findComment-898214 Share on other sites More sharing options...
JonnoTheDev Posted August 14, 2009 Share Posted August 14, 2009 Note: Any variable enclosed within single quotes (') will be treated as a string. Variables enclosed within double quotes (") will be parsed. However for readability sake it is better to concatonate variables to strings with a period (.) print "My name is ".$name." and I like PHP"; Quote Link to comment https://forums.phpfreaks.com/topic/170275-solved-nooby-help/#findComment-898218 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.