Re: PHP / Javascript menu list population
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: PHP / Javascript menu list population

From: Colin McKinnon <colin.thisisnotmysurname@ntlworld.deletemeunlessURaBot.com>
Date: Sat Oct 29 2005 - 15:17:09 CEST

bigfella wrote:

> Hello Folks,
>
> I would like a web page to have 2 menu lists
>
> The contents of the second menu list depending on the selection made in
> the first.
>
> The contents of the second would be populated from a database.
>
> I am fairly new to programming using PHP, Javascript and MySQL but I am
> sure what I am asking has been done before. Could someone please give
> me some pointers or direct me to a tutorial.
>

This *seriously* is not trivial. Try reading up on ajax and javascript RPC.

As an alternative way to solve the problem...
Way back when....Netscape used to render select/optgroup/...optgroup/option
as a cascaded menu but none of the current browsers do that - I guess you
could use PHP Layers menu to acheive the result.

C.
Received on Mon Nov 21 02:52:42 2005