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! :)
10-11-2012, 02:42 AM
ZABI
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.