Re: [PHP] Form Validation Issues

2007-05-30 Thread Richard Lynch
On Tue, May 29, 2007 12:05 am, Greg Donald wrote: > On 5/24/07, Robert Cummings <[EMAIL PROTECTED]> wrote: >> *lol* You must have missed the other thread... hence the wink on the >> end :) > > I'm guessing not everyone uses a threaded email client. And some > people always feel the need to post th

Re: [PHP] Form Validation Issues

2007-05-28 Thread Greg Donald
On 5/24/07, Robert Cummings <[EMAIL PROTECTED]> wrote: *lol* You must have missed the other thread... hence the wink on the end :) I'm guessing not everyone uses a threaded email client. And some people always feel the need to post their 'thoughts' no matter how well the question has already b

Re: [PHP] Form Validation Issues

2007-05-26 Thread Jim Lucas
tedd wrote: tedd wrote: "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Unknown Hi Jim: You might try the array below and the quote above, I believe, was > Douglas MacArthur of WWII fame. Is that the same Douglas MacArth

Re: [PHP] Form Validation Issues

2007-05-26 Thread tedd
tedd wrote: "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Unknown Hi Jim: You might try the array below and the quote above, I believe, was > Douglas MacArthur of WWII fame. Is that the same Douglas MacArthur who was on

Re: [PHP] Form Validation Issues

2007-05-26 Thread David Robley
tedd wrote: >>"Some men are born to greatness, some achieve greatness, >>and some have greatness thrust upon them." >> >>Unknown > > Hi Jim: > > You might try the array below and the quote above, I believe, was > Douglas MacArthur of WWII fame. Is that the same Douglas MacArthur w

Re: [PHP] Form Validation Issues

2007-05-25 Thread tedd
At 8:57 AM -0700 5/23/07, Jim Lucas wrote: kvigor wrote: if($value != 'Alabama' || $value!= 'AL' || $value != 'Alaska' || $value!= 'AK' || $value != -snip- Ok, here is something that might help you. $states['AL'] => 'Alabama'; $states['AK'] => 'Alaska'; -snip- $states['WY'] => 'Wyoming';

Re: [PHP] Form Validation Issues

2007-05-24 Thread Robert Cummings
On Thu, 2007-05-24 at 17:58 -0500, Richard Lynch wrote: > > On Wed, May 23, 2007 10:48 am, Robert Cummings wrote: > > On Wed, 2007-05-23 at 10:10 -0500, Greg Donald wrote: > >> On 5/23/07, kvigor <[EMAIL PROTECTED]> wrote: > >> > [-- SNIPPITY SNIP SNIP --] > >> > != 'Texas' || $value!= 'TX' || $va

Re: [PHP] Form Validation Issues

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 10:48 am, Robert Cummings wrote: > On Wed, 2007-05-23 at 10:10 -0500, Greg Donald wrote: >> On 5/23/07, kvigor <[EMAIL PROTECTED]> wrote: >> > [-- SNIPPITY SNIP SNIP --] >> > != 'Texas' || $value!= 'TX' || $value != 'Utah' || $value!= 'UT' >> || $value >> > != 'Vermont' || $v

Re: [PHP] Form Validation Issues

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 7:41 am, kvigor wrote: >if($value != 'Alabama' || $value!= 'AL' || $value != 'Alaska' || This mess will *ALWAYS* evaluate to TRUE, because the $value is ALWAYS only one value, and thus the other 99 values are going to evaluate to TRUE and you have || between them... So y

Re: [PHP] Form Validation Issues

2007-05-23 Thread Jim Lucas
Greg Donald wrote: On 5/23/07, Jim Lucas <[EMAIL PROTECTED]> wrote: $states['TN'] => 'Tennesee'; :%s/Tennesee/Tennessee/ Not my typo, this was the ops list just reformatted. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon

Re: [PHP] Form Validation Issues

2007-05-23 Thread Jim Lucas
Greg Donald wrote: On 5/23/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Ok, here is something that might help you. $states['AL'] => 'Alabama'; $states['AK'] => 'Alaska'; And a little something for you as well: :%s/=>/=/g oops, did over look that one -- Jim Lucas "Some men are born to gre

Re: [PHP] Form Validation Issues

2007-05-23 Thread Greg Donald
On 5/23/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Ok, here is something that might help you. $states['AL'] => 'Alabama'; $states['AK'] => 'Alaska'; And a little something for you as well: :%s/=>/=/g -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Form Validation Issues

2007-05-23 Thread Greg Donald
On 5/23/07, Jim Lucas <[EMAIL PROTECTED]> wrote: $states['TN'] => 'Tennesee'; :%s/Tennesee/Tennessee/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 10:55 -0500, Greg Donald wrote: > On 5/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > You should really look into learning in_array() for stuff like this. > > > > Wouldn't that slow things down and increase the memory footprint? ;) > > It'd be interesting to see a be

Re: [PHP] Form Validation Issues

2007-05-23 Thread Jim Lucas
kvigor wrote: if($value != 'Alabama' || $value!= 'AL' || $value != 'Alaska' || $value!= 'AK' || $value != 'Arizona' || $value!= 'AZ' || $value != 'Arkansas' || $value!= 'AR' || $value != 'California' || $value!= 'CA' || $value != 'Colorado' || $value!= 'CO' || $value != 'Conneticut' || $valu

Re: [PHP] Form Validation Issues

2007-05-23 Thread Greg Donald
On 5/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > You should really look into learning in_array() for stuff like this. Wouldn't that slow things down and increase the memory footprint? ;) It'd be interesting to see a benchmark. -- Greg Donald http://destiney.com/ -- PHP General Maili

Re: [PHP] Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 10:10 -0500, Greg Donald wrote: > On 5/23/07, kvigor <[EMAIL PROTECTED]> wrote: > > [-- SNIPPITY SNIP SNIP --] > > != 'Texas' || $value!= 'TX' || $value != 'Utah' || $value!= 'UT' || $value > > != 'Vermont' || $value!= 'VT' || $value != 'Virginia' || $value!= 'VA' || > > $valu

Re: [PHP] Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 10:17 -0500, kvigor wrote: > Thanks Dan, > > Work like a dream. I solute you. Don't look now Dan... but you're dissolving!!! *hehe* Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com

Re: [PHP] Form Validation Issues

2007-05-23 Thread kvigor
Thanks Dan, Work like a dream. I solute you. ""Daniel Brown"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 5/23/07, kvigor <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I have an issue with a particular if statement when I check 3 form fields >> for their value. The problem is

Re: [PHP] Form Validation Issues

2007-05-23 Thread Greg Donald
On 5/23/07, kvigor <[EMAIL PROTECTED]> wrote: The code is: "Consumer Name", "conAddress" => "Consumer Address", "conCity" => "Consumer City", "conState" => "Consumer State", "conZip" => "Consumer Zip Code", "conPhone" => "Consumer Phone", "schName" => "School Name",

Re: [PHP] Form Validation Issues

2007-05-23 Thread Daniel Brown
On 5/23/07, kvigor <[EMAIL PROTECTED]> wrote: Hi, I have an issue with a particular if statement when I check 3 form fields for their value. The problem is no matter what input is entered in the fields the output is the same. I only added the 3 fields in question of the form to reduce heartac

Re: [PHP] Form Validation Issues

2007-05-23 Thread Zoltán Németh
2007. 05. 23, szerda keltezéssel 07.41-kor kvigor ezt írta: > Hi, > > I have an issue with a particular if statement when I check 3 form fields > for their value. The problem is no matter what input is entered in the > fields the output is the same. I only added the 3 fields in question of the

Re: [PHP] Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 07:41 -0500, kvigor wrote: > > if($field == "conState" || $field == "schState" || $field == "strState") > //if these 3 fields are entered >{ >if($value != 'Alabama' || $value!= 'AL' || $value != 'Alaska' || $value!= > 'AK' || $value != 'Arizona' || $value!= 'AZ'

[PHP] Form Validation Issues

2007-05-23 Thread kvigor
Hi, I have an issue with a particular if statement when I check 3 form fields for their value. The problem is no matter what input is entered in the fields the output is the same. I only added the 3 fields in question of the form to reduce heartache for the readers of this post. Output alway