--- On Wed, 9/17/08, Brian E Boothe <[EMAIL PROTECTED]> wrote:

> From: Brian E Boothe <[EMAIL PROTECTED]>
> Subject: [php-list] automatic fill in
> To: php-list@yahoogroups.com
> Date: Wednesday, September 17, 2008, 10:55 PM
> hi all
>    i have three text boxes on my form
>        First name
>        Lastname
>        POid
> 
> when a user types in there first and last name ,   how can
> i get the POid to automatically fill in with there Initials ??

Automatic population of form data is a browser thing.  Different browsers, 
which may be configured differently, will yield different behaviors in this 
area.

The browser is probably seeing familiar field names, like "First name" (or 
"firstname"), "lastname", etc., and filling in the details stores for other web 
sites or the user profile on the operating system.

There is probably not something for initials.  However, you could probably use 
some Javascript (a topic for another forum) to look at values entered for the 
first and last name fields and generate a POid value.  It could be updated with 
an onChange event for the other fields.

James Keeline

Reply via email to