digi duck Posted September 4, 2006 Share Posted September 4, 2006 --------------------------------------------------------------------------------Hi i was wondering if any1 knew of a way how to count clicks of a submit button and show thi number on a different page without using a database. This is my site http://gamesigs.co.uk and what i would like is for evertime someone clicks on the submit button on gamesigs.co.uk/create.php for it to add one on to the count and show this count on the index.php page. Any ideas would be appreciated. Also i don't think i can put any more code in the _sig_create.php (the file the button geos to) as it messes up the page. Thanks a lot Digi. Quote Link to comment Share on other sites More sharing options...
digi duck Posted November 8, 2006 Author Share Posted November 8, 2006 bump Quote Link to comment Share on other sites More sharing options...
Renlok Posted November 16, 2006 Share Posted November 16, 2006 use a text file to store the count and have the counter on the page/code the button takes you to. Quote Link to comment Share on other sites More sharing options...
digi duck Posted January 2, 2007 Author Share Posted January 2, 2007 how would i do this? Quote Link to comment Share on other sites More sharing options...
Renlok Posted January 2, 2007 Share Posted January 2, 2007 use the fopen command to open, something like this:[code]<?php$handle = fopen("yourfile.txt", "w");?>[/code]then youll need to use the fwrite command cant remember how to use this so read up on it at [url=http://uk2.php.net/manual/en/function.fwrite.php]http://uk2.php.net/manual/en/function.fwrite.php[/url] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.