|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-08-07 19:00 UTC] lukas_schell at bluewin dot ch
when using a session together with an internal link, say : <a href="#bottom">go to bottom</a> the resulting url is say : http://www.tre.dds/programs/?session_id=3l344l4j3l#bottom which directs to : http://www.tre.dds/programs instead of say http://www.tre.dds/programs/mypage.php#bottom?session_id= 3l344l4j3l PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 00:00:01 2025 UTC |
When using a session together with an internal link, say : <a href="#bottom">go to bottom</a> the resulting url is say : http://www.tre.dds/programs/?session_id=3l344l4j3l#bottom which directs to : http://www.tre.dds/programs instead of say http://www.tre.dds/programs/mypage.php#bottomThe workaround href="/programs/mypage.php#bottom" does not work, for session_id=? is inserted between mypage.php and #bottom This works : <script language="JavaScript"> var str1="<a hr"; var str2="ef"; document.write(str1+str2+"='#REPLY'>go to bottom</a>"); </script> (Writing "href" in one string makes php transform the address) But when reloading the page with the reload button, the get arguments are added once again behind the address of the link. The link still works, but the page is reloaded again !