www.webdeveloper.com
Results 1 to 2 of 2

Thread: PHP Odometer

  1. #1
    Join Date
    Nov 2011
    Posts
    6

    PHP Odometer

    Hi Everyone,

    I'm looking to build a php odometer style counter that subtracts 1 every time a user submits a form to my server. Then, too, if my client side validations are in place, is there any reason I shouldn't use javascript for this? I'm obviously going to validate server side and client side, but on which side should this script be executed? Any ideas would be helpful and greatly appreciated!

    Thanks!

  2. #2
    Join Date
    Mar 2009
    Posts
    452
    as Javascript runs on client side and refreshing the page will reset to the count to the original number more over the count will be applicable to that visit only, where as PHP works on server side it can store the count in a file or a database field; and you can make a universal count for all visits.

    so its up to you what you want to

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