Jump to content

counting clicks on submit button


Recommended Posts

--------------------------------------------------------------------------------

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.
Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.