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.

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.

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.