hi,
i am stuck in a problem, kindly help.
i am making a site, in which the visitor clicks on apply (for a credit card), now, how can i know that how many times apply for a card has been clicked by the user, i need to create a statistics that for a particular card - n number of times apply was clicked.
Thank you,
Gaurav
site statistics - number of clicks
Moderator: General Moderators
-
gaurav_sting
- Forum Newbie
- Posts: 19
- Joined: Sat Mar 27, 2004 3:45 am
- Location: Delhi
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
- have the link "apply for card" go to "log.php"
- on log.php:
* open a text file with fopen
* get the number out of it
* add one to the number
* save the new number (replacing the old one)
* set a cookie to let your script know it's already been clicked by that person
* redirect to the original link
- on log.php:
* open a text file with fopen
* get the number out of it
* add one to the number
* save the new number (replacing the old one)
* set a cookie to let your script know it's already been clicked by that person
* redirect to the original link
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
I don`t compily anderstand what you wanne do but you could but you could but a insert sql on that page and every time it loads it counts a hit or if you want to make the hits per user how many times the user on his own did click you can set it in a session and then once the user did enter every thing and is done then count the finil session to a text file or a database. I hope this hopes and didn`t just waste pasteing space.