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
> 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,
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
> // 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
> 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
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 (
"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
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
8 matches
Mail list logo