On Jan 4, 2008 9:54 AM, Reese <howell.r@xxxxxxxxxxxxxxxx> wrote: > Greetings, > > I've been lurking for several weeks, I thought I'd post to describe > a problem I've been having in the hope that a solution can be found. > And my thanks to Casey, for his offlist assistance with another, > unrelated issue earlier this week. :-) [snip="all"] Reese, While I noticed several areas for improvement in the code (such as being sure to exit; after calling header("Location: xxxx"); ), two things primarily come to mind: Do you expect the value of $key in this condition to be a literal zero? $twoyears = array('alphanumeric_code1', 'alphanumeric_code2', 'alphanumeric_code3', 'alphanumeric_code4', 'alphanumeric_code5', 'alphanumeric_code6', 'alphanumeric_code7'); $key = in_array($sPromocode,$twoyears); if($key=='0') Also, what about ISPs such as AOHell who use fully-dynamic IP proxies that change on location, at time intervals, and are interspersed with random changes? Even putting that into a range won't help, as it's likely the IP will only have the network prefix (and perhaps the same Class B slot). -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php