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 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"); 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. Link to comment https://forums.phpfreaks.com/topic/183333-_get-problems/#findComment-967689 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.