Re: [PHP] Login script problem

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 11:50 AM, Reese [EMAIL PROTECTED] wrote: Daniel Brown wrote: 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',

Re: [PHP] Login script problem

2008-01-05 Thread Reese
Daniel Brown wrote: if(!isset($key=='1')) //caused parse error That's because isset() isn't able to eval() an expression. Got it, I see the mistake now. Remove the !isset() part, or the =='1' part and that will remove the parse error. I changed it to if(!isset($key)) and

[PHP] Login script problem

2008-01-04 Thread Reese
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. :-) I apologize up front, for what is probably

Re: [PHP] Login script problem

2008-01-04 Thread Daniel Brown
On Jan 4, 2008 9:54 AM, Reese [EMAIL PROTECTED] 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

Re: [PHP] Login script problem

2008-01-04 Thread Reese
Web Design Company wrote: Someone? Me31!1!1ONE Please, if you do not need amplifying information or if you do not intend to pose a suggestion, it is better to remain silent. I wasn't helped by your Someone? post, no one else was either. Reese -- PHP General Mailing List

Re: [PHP] Login script problem

2008-01-04 Thread Web Design Company
Someone? - http://ooyes.net Web design company | http://ooyes.net Graphic design company | http://ooyes.net Outsourcing company -- View this message in context: http://www.nabble.com/Login-script-problem-tp14618073p14618942.html Sent from the PHP - General mailing list archive at

Re: [PHP] Login script problem

2008-01-04 Thread Reese
Daniel Brown wrote: [snip=all] Reese, While I noticed several areas for improvement in the code (such as being sure to exit; after calling header(Location: ); ), two things primarily come to mind: Do you expect the value of $key in this condition to be a literal zero?

Re: [PHP] Login script problem

2008-01-04 Thread Daniel Brown
On Jan 4, 2008 11:55 AM, Reese [EMAIL PROTECTED] wrote: Web Design Company wrote: Someone? Me31!1!1ONE Please, if you do not need amplifying information or if you do not intend to pose a suggestion, it is better to remain silent. I wasn't helped by your Someone? post, no one else was