Jump to content

Anchor issue with PHP


nepzap2

Recommended Posts

index.php?page=TechnologyTransferTest&section=BTI-TN5B1#ntro

In the above, #nitro is seen as part of a key/value in the GET namespace

 

BTI-TN5B1.php#ntro

In the above, #nitro isn't part of a key/value pair in the GET namespace and then is passed to the client to interpret, which most browsers would interpret as an anchor.

Link to comment
Share on other sites

So, I assume, what you're trying to do is target a specific spot on the page, while still passing the url variables?

 

The easiest way, admittedly, requiring some re-engineering on your part, would be to pass the values through POST instead of GET; then you'll free up the GET namespace for whatever you want.

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.