Re: [PHP] New way to make select boxes auto select

2002-07-25 Thread Roger Thomas
i used the same techniqu a while back when i worked with Fast Template. scenario: - present a user with a form to input - there are several text fields and several select options - if there is/are error(s) upon form submission, we will call the same template file and insert proper error messages a

RE: [PHP] New way to make select boxes auto select

2002-07-25 Thread Matt Schroebel
> From: Nathan Cook [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 25, 2002 2:52 PM > Subject: Re: [PHP] New way to make select boxes auto select > How are you able to quickly and painlessly determine which > key gets the > selected value, from form submission data,

Re: [PHP] New way to make select boxes auto select

2002-07-25 Thread Nathan Cook
From: "Johnson, Kirk" <[EMAIL PROTECTED]> > Do you know what happens here if the error reporting is set to max? > Are a bunch of "unitialized variables" warnings issued? That would be my assumption. I suppose you could initialize the variables first to circumvent that. I was more or less looking

Re: [PHP] New way to make select boxes auto select

2002-07-25 Thread Nathan Cook
> // buildSelect -- return a Select box named $selectName based on key value array $selectArray > ... > // $arr = array('MD'=>'selected','DC'=>'','VA'=>''); How are you able to quickly and painlessly determine which key gets the selected value, from form submission data, when building the initial

RE: [PHP] New way to make select boxes auto select

2002-07-25 Thread Matt Schroebel
> From: Nathan Cook [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 25, 2002 12:34 PM > Subject: [PHP] New way to make select boxes auto select > > > You may already be doing it like this, but I think I found a > new way to > make select boxes auto-select (what

RE: [PHP] New way to make select boxes auto select

2002-07-25 Thread Johnson, Kirk
k [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 25, 2002 10:34 AM > To: Php List > Cc: David Chase > Subject: [PHP] New way to make select boxes auto select > > > You may already be doing it like this, but I think I found a > new way to > make select boxes auto-select (

Re: [PHP] New way to make select boxes auto select

2002-07-25 Thread 1LT John W. Holmes
"Php List" <[EMAIL PROTECTED]> Cc: "David Chase" <[EMAIL PROTECTED]> Sent: Thursday, July 25, 2002 12:33 PM Subject: [PHP] New way to make select boxes auto select > You may already be doing it like this, but I think I found a new way to > make select boxes aut

[PHP] New way to make select boxes auto select

2002-07-25 Thread Nathan Cook
You may already be doing it like this, but I think I found a new way to make select boxes auto-select (what data they put in) a lot easier. All you have to do is put a variable in each select tag that is equal to the value of the select option i.e.: -- then all you have to do is base the variable