KevinM1 Posted May 17, 2007 Share Posted May 17, 2007 I'm currently trying to tweak some pre-existing code. The script in questions builds a page based on the value passed to it by the GET form method. While this, in and of itself, is pretty simple to figure out, there's something at the end of the URI that I'm not familiar with. The basic URI structure is like this: http://www.mywebsite.com/scriptname.php?id=1#somemodifier Does the part I bolded above have any significance? Quote Link to comment https://forums.phpfreaks.com/topic/51875-solved-dumb-question-about-the-get-form-method/ Share on other sites More sharing options...
redbullmarky Posted May 17, 2007 Share Posted May 17, 2007 not to $_GET, but it tells the page, once rendered, to go to the anchor named 'somemodifier'. Commonly, anchors are used in FAQ's - when lots of things are listed with a table of contents at the top where you click on an item and the pages moves down instead of following the link to another page. <a name="somemodifier">Here</a> so if you had that link in your HTML, and called the page with that modifier, the page would shift down to where the anchor is placed. Quote Link to comment https://forums.phpfreaks.com/topic/51875-solved-dumb-question-about-the-get-form-method/#findComment-255697 Share on other sites More sharing options...
KevinM1 Posted May 17, 2007 Author Share Posted May 17, 2007 not to $_GET, but it tells the page, once rendered, to go to the anchor named 'somemodifier'. Commonly, anchors are used in FAQ's - when lots of things are listed with a table of contents at the top where you click on an item and the pages moves down instead of following the link to another page. <a name="somemodifier">Here</a> so if you had that link in your HTML, and called the page with that modifier, the page would shift down to where the anchor is placed. Ah, gotcha. I've used anchors before, but I kept thinking that this particular case was something that had to do with GET. The GET syntax was throwing me off of what was really going on. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/51875-solved-dumb-question-about-the-get-form-method/#findComment-255699 Share on other sites More sharing options...
448191 Posted May 17, 2007 Share Posted May 17, 2007 You can use it to focus to any element though. You can reference id's. For example, if you add #upshrinkHeader to the url of this page you'll find that your browser will scroll up. Quote Link to comment https://forums.phpfreaks.com/topic/51875-solved-dumb-question-about-the-get-form-method/#findComment-255862 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.