variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • colinod
    Contributor
    • Nov 2007
    • 347

    variable

    i am trying to find a way of adding a variable so that i have alist of numbers so i can send this list in the url of a link

    eg

    Code:
    <a href= "url?variable=123,234,345,456">
    the values for the variable need to be added to and set from page to page on the click of a button

    not sure if asp or javascript would work, i have been playng with arrays but just cant get them to do what i want

    has anyone got any ideas

    it needs to be like a shopping cart but without the checkout part, so i just have the basket to contain details that relate to each number in the variable
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    This seems very easy and straight-forward. At the top of every page, open the variable with asp and add any new bits that are needed. What part is giving you trouble?

    Comment

    • colinod
      Contributor
      • Nov 2007
      • 347

      #3
      i need to add to the array when a button is clicked on the page and not just when the page is opened

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        Originally posted by colinod
        i need to add to the array when a button is clicked on the page and not just when the page is opened
        ASP only runs as the page is being opened. In order to run scripts while the page is on the browser, you need to switch to a "client-side" script like javascript.

        Jared

        Comment

        Working...