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?

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.