Using #

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bach 1 1/2C

    Using #

    Hello,

    My installation of PHP appends ?PHPSESSID=xxx to hyperlinks. So <a
    href="foobar.ht ml"> becomes <a href="foobar.ht ml?PHPSESSID=xx x">. If
    my hyperlink links to foobar.html#spo t, then PHP appends the session id
    incorrectly. It looks like this: <a
    href="foobar.ht ml?PHPSESSID=xx x#spot>. Any experience with this or an
    idea for making it work correctly?

    PHP Version 5.1.2

    Thanks.

  • John Dunlop

    #2
    Re: Using #

    Bach 1 1/2C:
    [color=blue]
    > My installation of PHP appends ?PHPSESSID=xxx to hyperlinks. So <a
    > href="foobar.ht ml"> becomes <a href="foobar.ht ml?PHPSESSID=xx x">. If
    > my hyperlink links to foobar.html#spo t, then PHP appends the session id
    > incorrectly. It looks like this: <a
    > href="foobar.ht ml?PHPSESSID=xx x#spot>. Any experience with this or an
    > idea for making it work correctly?[/color]

    The order is as it must be: the query part always comes before the
    fragment part.

    --
    Jock

    Comment

    Working...