using a variable in and href statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • charles baldwin
    New Member
    • Jun 2011
    • 1

    #1

    using a variable in and href statement

    i have a volusion webstore where affiliates are identified in url's by something called click id

    ie

    http://www.directshipt oner.com/SearchResults.a sp?Cat=15&Click =2

    in the case above the clickid=2

    clickid is a variable already defined on the html page where i am at. i can make the click id display on the webpage by using this statement in my html code. "$(ClickID) "

    i would like to be able to incorporate the "clickid" variable into an href statement using the URL listed above.

    can anyone enlighten me on the appropriate syntax to do this if it is possible?
  • ilya Kraft
    New Member
    • Jan 2011
    • 134

    #2
    Alright, I'm not sure, but I think you are looking for something like this

    <a href="http://www.directshipt oner.com/SearchResults.a sp?Cat=15&Click =<?php echo $ClickID; ?>"></a>

    Comment

    Working...