dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Form Counter

  1. #1
    Join Date
    Dec 2002
    Posts
    2

    Form Counter

    Hello

    Is there anyway to link a counter into a form so when someone submits the form the counter counts 1.


    e.g. someone submits the form so when the next person visits the site the counter is on 2.


    Thanks

  2. #2
    Join Date
    Dec 2002
    Location
    Sarasota, FL
    Posts
    63
    That's something that would need to be built into the application that handled the form submission on the server-side of things.

    Another way you could do it would be to setup a standard CGI hit counter, but only call it when someone submits the form. When a form submit button is clicked, you'd call a JavaScript function that would create a new Image() object, then set the SRC to your hitcounter to increment it. That's all beyond the scope of this forum, though you might ask in the JavaScript forum for details.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles