vozzek Posted October 11, 2008 Share Posted October 11, 2008 Hi all, Simple question: can I pass a parameter to a page with a location anchor tag? For example... page1.php#birds - takes the user to page1.php at the anchor tag named 'birds'. Works fine. page1.php?userid=1001 - takes the user to page1.php and passes a parameter called 'userid' with a value of 1001. Works fine. page1.php#birds?userid=1001 - SHOULD take the user to page1.php at the anchor named 'birds' and bring the userid parameter over with a value of 1001. DOESN'T WORK. It loads the page and passes the parameter, but the page is loaded at the top, and not at the 'birds' anchor location. Any way to do this? Thanks in advance for the help. Link to comment https://forums.phpfreaks.com/topic/127997-parameter-passing-to-a-page-with-an-anchor-tag/ Share on other sites More sharing options...
vozzek Posted October 11, 2008 Author Share Posted October 11, 2008 Hehe, nevermind - I figured it out. You have to move the #name and append it after the parameter. So basically... page1.php?userid=1001#birds Thanks though! Link to comment https://forums.phpfreaks.com/topic/127997-parameter-passing-to-a-page-with-an-anchor-tag/#findComment-662817 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.