Tech Off Post

Single Post Permalink

View Thread: Passing php variables via "a name" links - Help?
  • User profile image

    I'm trying to write a website that is dependant on being able to make a name

    <a href="foo.html">foo</a>
    <a href="#bar">bar</a>

    <div name="bar">

    However I want the content inside the bar div to give php variable information....thus...

    I wanted to try to form my link as such...

    <a href="#bar?var=value">bar</a>

    However it isn't working....any ideas?