Forum Moderators: coopster

Message Too Old, No Replies

Anchor & variable with GET

Putting together

         

sarka86

12:42 pm on Apr 29, 2008 (gmt 0)

10+ Year Member



Hallo Guys!

I wrote a PHP page that accepts a variable sent with GET method (example myPage.php?myVar=myValue).
I'd like to open a link to an anchor myAnchor situated in this page.
I think I can't achieve that result just adding # (myPage.php?myVar=myValue#myAnchor or myPage.php#myAnchor?myVar=myValue).

Is there another way (PHP script, Javascript function, magic spell :)) or is it completely impossible?

Thanks for your attention!

d40sithui

2:45 pm on Apr 29, 2008 (gmt 0)

10+ Year Member



It is completely possible.
"myPage.php?myVar=myValue#myAnchor" will work fine as long as you id your html entities appropriately.