Page 1 of 1

CCounter with a form submit

Posted: Thu Oct 15, 2009 9:00 pm
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?

Posted: Fri Oct 16, 2009 1:18 pm
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.

Posted: Fri Oct 16, 2009 1:59 pm
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.