Re: Creating and refreshing forms with data
| From: | Jayme Jeffman Filho | Date: | Tue, 01 Aug 2000 23:10:23 +0000 |
| Subject: | Re: Creating and refreshing forms with data | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-1689@lists.php.net to get a copy of this message | ||
Of course it make sense.
You allready know how to make the first menu. There is no way to guess what
item of the first menu will be choosed by the user, and at the time the user
acts the page is allready done. There is no way to build the other menus
without reloading the page every time the user changes his options.
If the amount of data is not very large you can fill all the menus options
into JavaScript arrays and change the available options in each menu as the
user take actions on the page, rebuilding the menus from the arrays.
I hope this helps.
Jayme.
-----Mensagem original-----
De: Andrew <Andrew@auto-equip-pieces.co.uk>
Para: php <php-db@lists.php.net>
Data: Terça-feira, 1 de Agosto de 2000 12:07
Assunto: [PHP-DB] Creating and refreshing forms with data
>Hi,
>
>I'm making a database query page, using drop down menus.
>
>I'd like to make the options in each subsequent drop down menu change
>depending on whats selected in the first menu. I could easily use a
>series of pages, but Id like to keep the selections all on one page. Is
>there a simple way of doing this?
>I'm taking the first set of options from one table, and the second set
>from a second table (there is a relationship, so some items in the
>second table may or may not be related to the first table)
>I have already set the first menu to take it's variable from the first
>table. It's just the dependancy I'm stuck with.
>
>Hope this makes sense :)
>
>Regards
>
>Andrew
>
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
>For additional commands, e-mail: php-db-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>