Welcome to WebmasterWorld Guest from 54.196.144.242

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Problem getting third parameter from $_GET

When this can happen?

     
6:05 pm on Mar 9, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 10, 2003
posts:161
votes: 0


I wrote a little script to count banner clicks to the db (MySQL). It does this via $_GET['parX'] variables from
click.php?par1=10&par2=20&par3=qqq

And i'm often getting database entries having correct two first parameters and empty third one. These clicks are often numerous (10-20 in a row), so i assume they may be from some bots masking for humans, but there are some that are only 1-2 in a row and they can be from real people.

How this can be that the third parameter from $_GET becomes empty?

Thanks in advance.

8:58 pm on Mar 9, 2006 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member whoisgregg is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Dec 9, 2003
posts:3416
votes: 0


Maybe they are only submitting the first two?

Try logging $_SERVER['REQUEST_URI'] to see what it contains.

9:01 pm on Mar 9, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 10, 2003
posts:161
votes: 0


Thanks for advice!
I'll try it.