Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-12-2003, 01:27 AM   PM User | #1
thickandthin
Regular Coder

 
Join Date: Aug 2002
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
thickandthin is an unknown quantity at this point
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
__________________
Please visit http://www.thickandthinpizza.com and tell me what you think.

Last edited by thickandthin; 04-12-2003 at 01:47 AM..
thickandthin is offline   Reply With Quote
Old 04-12-2003, 01:39 AM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,223
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
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
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 04-12-2003, 01:48 AM   PM User | #3
thickandthin
Regular Coder

 
Join Date: Aug 2002
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
thickandthin is an unknown quantity at this point
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.
thickandthin is offline   Reply With Quote
Old 04-12-2003, 02:46 AM   PM User | #4
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,223
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
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
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:51 PM.


Advertisement
Log in to turn off these ads.