jmr3460 Posted November 29, 2009 Share Posted November 29, 2009 I know this should work I am sure I have done it before I can't find it though. Why won't this work? $id = $result['contact_id']; header('Location: index.php?id=$id'); on the index page the url looks exactly the same: index.php?id=$id Quote Link to comment https://forums.phpfreaks.com/topic/183333-_get-problems/ Share on other sites More sharing options...
Alex Posted November 29, 2009 Share Posted November 29, 2009 Variables aren't parsed in single quotes. Use double quotes: header("Location: index.php?id=$id"); Quote Link to comment https://forums.phpfreaks.com/topic/183333-_get-problems/#findComment-967686 Share on other sites More sharing options...
jmr3460 Posted November 29, 2009 Author Share Posted November 29, 2009 Thank you very much, I hope I will remember that. Quote Link to comment https://forums.phpfreaks.com/topic/183333-_get-problems/#findComment-967689 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.