button click?

Discussion in 'Programming' started by srox, Oct 13, 2008.

  1. #1
    Can i count how many times a button is clicked on a web page? Can i restrict user to click twice on the same button??
     
    srox, Oct 13, 2008 IP
  2. Cruor

    Cruor Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yeah, if the user clicked on that button once, save it to a variable where 0 i not-clicked and 1 is clicked
     
    Cruor, Oct 13, 2008 IP
  3. joxtechnology

    joxtechnology Peon

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can also use session or cookie to track youre users click.
     
    joxtechnology, Oct 14, 2008 IP
  4. nishanair

    nishanair Active Member

    Messages:
    188
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    session is good track easily
     
    nishanair, Oct 15, 2008 IP
  5. ranabra

    ranabra Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes. very simple to apply. use client side script.
    Use something like:
    <input type="button" value="Click Me!" onclick="this.disabled=true;this.form.submit();">
     
    ranabra, Oct 15, 2008 IP