Page 1 of 1

1 link giving multi clicks

Posted: Mon Jul 16, 2007 5:08 pm
by zellahh
Script URL:
Version of script: 1.1
Hosting company:no
URL of phpinfo.php: http://ccgi.uproar.force9.co.uk/phpinfo.php
URL of session_test.php: http://ccgi.uproar.force9.co.uk/session_test.php
What terms did you try when SEARCHING for a solution:

Write your message below:

Hello im new to php and having problems with 1 link giving multi clicks

<li><a href="http://ccgi.uproar.force9.co.uk/ccount/click.php?id=1" target="_blank" onClick="javascript:PlayerOpen('Track. 1: MOTA - Any City You Like',this.href); return false">Play MOTA - Any City You Like</a> (3.37mb)</li>
</ul>

can you help me with what i've done wrong if i do it without the javascript it works fine

link to page http://www.uproar.force9.co.uk/Downloads.html

Posted: Mon Jul 16, 2007 9:01 pm
by Klemen
Probably the Javascript is opening the link twice, not sure hot to solve it unless you try to rewrite the Javascript. Can't really help here.

Posted: Tue Jul 24, 2007 3:09 am
by zellahh
it seems to do a random number of clicks not just two click

Posted: Tue Jul 24, 2007 11:58 am
by Klemen
If you remove all the Javascript and use simple original links it works fine, doesn't it?

Posted: Wed Aug 01, 2007 10:37 am
by zellahh
yep it works fine without the javascript :cry: but i need it to work with it isnt their a way to to limit the clicks an ip can give so if they click it 3-4 times in 30 mins it will only show once?

Posted: Mon Aug 06, 2007 7:12 pm
by Klemen
My first advice would be to find someone to check your Javascript.

The limit of 1 click per IP (or cookie) has been mentioned here before and some guidelines posted somewhere on this forum, try finding it.

I won't be able to do any of the above as I'm writing my diploma at the moment...