CCounter with a form submit

Post your Click counter digestion problems here
Post Reply
thinkrainmaker
Posts: 2
Joined: Thu Oct 15, 2009 8:54 pm

CCounter with a form submit

Post by thinkrainmaker »

Script URL: http://www.supportwvcoal.com/index2.html
Version of script:
Hosting company: GoDaddy
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
I have added the CCount to my server, and added a link, and everything on the backend seems to be working.

My problem is the link I am using. I have it setup count how many people sign a petition. When they click the link to sign the petition, it adds the data to a database at a marketing company I use for email blasts (Emailbrain.com)

Originally I used the link I need to use for them to submit the form as the link I want to track. It counted the click but the redirect failed to submit the information to the form.

I love this script and I want to use it, but I need for the form to still submit the data. Do you have any ideas on what I could do to work around this?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

CCount won't work with forms directly because it doesn't support the "post" http method.

Two possible workarounds would be:

1. After people sign a petition redirect them to a ccount-counted page.

OR

2. On the thank you page (again, the page that shows after someone signs the petition) place an image and link it's URL to CCount. So instead of
<img src="image.jpg">
use
<img src="ccount/click.php?id=1">
and enter the URL of image.jpg as the first link in CCount.

Hope this makes sense.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
thinkrainmaker
Posts: 2
Joined: Thu Oct 15, 2009 8:54 pm

Post by thinkrainmaker »

Used the link to my redirect page, and set it so that the Number of signatures still shows up on the Main Page!!!!

Thanks a TON! My boss is going to be quite happy.
Post Reply