What you're asking to do is generally a client side thing (getting the
browser to fill in a form is normally done with javascript). You *could*, I
guess, get the combo box to submit the form, which PHP then prints out
prepopulated, but its rather a waste of resources. Unless, of course, you
need to populate it with a database query, in which case get the combo box
to submit (using JS), perform your query, and use a lot of print statements
to send the prefilled form back.

Check a javascript site for info on how to do it with JS. If you need more
help, you should take this to the PHP-General list. This list (PHP-DEV) is
for actual development of PHP, not the use of it.

adamw



----- Original Message -----
From: "Luiz Augusto G Flores (Amix)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 11:12 AM
Subject: [PHP-DEV] Refreshing a form starting from a combo box change


> I'm new in this list (subscribed yesterday, at night) and already new in
PHP
> Programming.
> I guess sombebody has already answered this question:
> How can I procced to update a form from a combo box change, bringing the
> rest of values necessary to fill the form ?
>
> An example:
> A form with
>
> Name: -> textbox
> Adress: -> textbox
> Company: -> combo box
> Contact: -> textbox
>
> When you choose a Company (this combo is filled from an Oracle database
> table), the Contact textbox is automatically filled with its contact in
the
> same table).
>
> Thanks for any help
>
>
>
>
> Luiz Augusto G. Flores - Amix
> Tel: 3085-2277
> e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to