denoteone Posted August 21, 2008 Share Posted August 21, 2008 I want to create a standard template page for a doc download. But I don't want to have to create a page for each doc. Is there a way to pass a variable in an <a href> so that when the page that is being linked to can use the variable? I know this is vague. The page that is being linked to will be a php page with things like the page title and hidden inputs being replaced by the variable that is passed? Link to comment https://forums.phpfreaks.com/topic/120719-solved-passing-variable-in-link/ Share on other sites More sharing options...
Fadion Posted August 21, 2008 Share Posted August 21, 2008 Page 1 <a href="page2.php?title=denoteone&forum=phpfreaks">Click Me</a> Page 2 <?php $title = $_GET['title']; $forum = $_GET['forum']; //rest of the code ?> Link to comment https://forums.phpfreaks.com/topic/120719-solved-passing-variable-in-link/#findComment-622064 Share on other sites More sharing options...
denoteone Posted August 21, 2008 Author Share Posted August 21, 2008 thanks. Guilty! Link to comment https://forums.phpfreaks.com/topic/120719-solved-passing-variable-in-link/#findComment-622080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.