Jump to content

[SOLVED] Dumb question about the GET form method


KevinM1

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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! :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.