How do I combine an anchor tag AND a passed variab

2019-03-14 06:19发布

Say I have an anchor somewhere on a different page:

<A NAME="blah">

On the page I'm currently on, I want to go that that anchor on that different page while also passing a GET parameter, such as, for example:

<A HREF="otherpage.htm#blah?data=1234">Good Stuff!</A>

This doesn't seem to be working for me. It loads the page and passes the variable but doesn't go to the anchor. I've searched for examples on the anchor tag, and there's tons of them, but nobody talks about jumping to an anchor in a page while also passing parameters in the URL.

标签: html anchor href
2条回答
够拽才男人
2楼-- · 2019-03-14 06:31

how would i do this in a header? my trial does not work. thanx stan

header("location:showcase.php?password=$argument2&arg1=$argument3#$argument4");

查看更多
Rolldiameter
3楼-- · 2019-03-14 06:46

The bookmark always goes last.

<A HREF="otherpage.htm?data=1234#blah">Good Stuff!</A>
查看更多
登录 后发表回答