[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.: option value=teacher $teacher -- then all you

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

2002-07-25 Thread 1LT John W. Holmes
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 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

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

2002-07-25 Thread Johnson, Kirk
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 (what data they put in) a lot easier. All you have

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 data they put in) a lot easier. All

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 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 for 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, when building the initial

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