Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Help

  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Print Counter

    Okay I have coupons on my web-site and I wanted to track how many times people have clicked on the print button, I am assuming that this would be a PHP topic so I posting this thread,

    Thanks in advance,
    Thickandthin
    Last edited by thickandthin; 04-12-2003 at 01:47 AM.
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Assuming you are using PHP then yes you are in the right place.

    How does your print buttin currently work....or in other words what happens right now when people click on the button?

    To do this you can simply write a number to a file.

    P.S. "Help" is not a proper subject line for threads in our forums. Please read the Posting Guidelines:

    http://www.codingforums.com/postguide.htm
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay when you click the print button it prints another page but is there any way to simply count how many? and how.
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Ok I kind of figured that you print a page when the print button is clicked. What I was looking for is what happens....ie do you open a new window? ...do open the print dialog box? or what when the button is clicked?

    in any case here, in order to keep track of the clicks, a request will hve to be sent to the server so you will either have to reload the current page or request a new page that contains the code to open the file and update the count.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •