dadamssg Posted January 21, 2009 Share Posted January 21, 2009 can someone explain to me how exactly to pass info through the url? i believe i can use the $_GET function to do this. say i have rows of info in my db, and i have a template.php where it has..say a table and in each of these tables i echo variables. i want to attach an ID number to the url so i can get that number, pull up that particular row in the db with that number and then display whats in that row through the variables in the table. Hope this makes sense... Quote Link to comment https://forums.phpfreaks.com/topic/141806-solved-pass-info-through-url-q/ Share on other sites More sharing options...
MadTechie Posted January 21, 2009 Share Posted January 21, 2009 it makes sense if this is what you wanted <a href="index.php?ID=1">ID = 1</a> <?php echo "ID=".$_GET['ID']; ?> Quote Link to comment https://forums.phpfreaks.com/topic/141806-solved-pass-info-through-url-q/#findComment-742401 Share on other sites More sharing options...
dadamssg Posted January 21, 2009 Author Share Posted January 21, 2009 beautiful..thanks madtech Quote Link to comment https://forums.phpfreaks.com/topic/141806-solved-pass-info-through-url-q/#findComment-742404 Share on other sites More sharing options...
MadTechie Posted January 21, 2009 Share Posted January 21, 2009 Welcome, Can you click Topic Solved Quote Link to comment https://forums.phpfreaks.com/topic/141806-solved-pass-info-through-url-q/#findComment-742421 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.