Re: RE: [PHP-WIN] Dynamic Pulldown lists
| From: | Derick Rethans | Date: | Thu, 19 Apr 2001 20:55:17 +0000 |
| Subject: | Re: RE: [PHP-WIN] Dynamic Pulldown lists | ||
| References: | 1 | Groups: | php.dev php.windows |
| Request: | Send a blank email to php-dev+get-52012@lists.php.net to get a copy of this message | ||
Please stop crossposting this to php-dev@
Derick
On Thu, 19 Apr 2001, Svensson, B.A.T. wrote:
>
> >-----Original Message-----
> >From: Robert Trembath [mailto:robert@bacbarcodes.com]
> >Sent: Thursday, April 19, 2001 10:10 PM
> >To: php-windows@lists.php.net; php-dev@lists.php.net
> >Subject: [PHP-WIN] Dynamic Pulldown lists
> >
> >
> >A little help from anyone please.
> >
> >I know this was discussed before but I can't find it now that I need it. I
> >want to dynamically populate a pulldown list from a mysql query based on
> >what is selected from another pulldown list populated by a query from
> mysql.
> >If the first choice is changed a different list of option is populated in
> >the second. Please help!
>
> In meta code:
>
> DO DBQUERY <fetch [list] with argument [which list] from the previuos form>
>
> DO WRITE "<FORM ... etc, etc>"
> DO WRITE " <SELECT ... etc, etc, blaha, blaha>
> DO WHILE <not end of the [list]>
> DO WRITE " <OPTION VALUE=" + <your value for this [list].[element] +
> ">"
> DO WRITE " [list].[element]"
> DO WRITE " </OPTION>"
> END WHILE
> DO WRITE " </SELECT>"
> DO WRITE "</FORM>"
>
> And at last and most important:
>
> WHILE (NOT <understand HTML>)
> GOTO http://www.w3.org/MarkUp/Guide/
> END WHILE
> IF (<still wants to learn more>)
> GOTO http://www.w3.org/MarkUp/Guide/Advanced.html
> ELSE IF (<wants to read core specification>)
> GOTO http://www.w3.org/TR/html401/
> ELSE IF NOT (<know how to program something>)
> <read Knut's handbook>
> ELSE IF (NOT <problem still solved>)
> <then ask for help>
> END IF
>
> --
> 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
>
Derick Rethans
---------------------------------------------------------------------
PHP: Scripting the Web - www.php.net - derick@php.net
SRM: Site Resource Manager - www.vl-srm.net
---------------------------------------------------------------------
JDI Media Solutions - www.jdimedia.nl - d.rethans@jdimedia.nl
Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands
---------------------------------------------------------------------