Jump to content

Parameter Passing to a Page with an Anchor Tag?


vozzek

Recommended Posts

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