Re: Refreshing a form starting from a combo box change
| From: | Adam Wright | Date: | Thu, 18 Jan 2001 10:29:05 +0000 |
| Subject: | Re: Refreshing a form starting from a combo box change | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-44453@lists.php.net to get a copy of this message | ||
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)" <lflores@vesper.com.br>
To: <php-dev@lists.php.net>
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: lflores@vesper.com.br
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>