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']\"'); 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']); 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"; Link to comment https://forums.phpfreaks.com/topic/170275-solved-nooby-help/#findComment-898218 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.