Re: PHP / Javascript menu list population



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.

The simple solution is to hack other source codes and google it
<http://home.att.net/~codeLibrary/HTML/dropdown.htm> Possibly the
easiest way to do is to generate the JavaScript code using PHP (the
multi-dimensional array) as in the above link. But, if there is lot of
data, the browser may run out of memory. In that case, as Colin
suggested AJAX techniques might help.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

.



Relevant Pages

  • Standardized Reporting
    ... > picked up a book called Incident Response awhile ago ... For starters, I don't see problem with folks posting, ... logs, ... of the lists is the "seagull poster"...he swoops in, ...
    (Incidents)
  • Re: Ports with GUI configs
    ... I personally felt we'd sufficiently discussed this to death, but now there's 2 different folks who want to tear it apart some more. ... If you're bored of this, tell me, and I will drag these folks either into private discussions, or maybe onto the ports list. ... I might have agreed with this, except, I have lived for a good while with the Gentoo "USE" lists, and I can tell you that having insufficent control over what goes ontp those lists causes havoc both with the users trying to select the proper wording of the lists, and the programmers ... You have to make certain that both users and programmers have a definite, firm meaning in mind when they use the keywords, because if you don't, USE lists are a PITA. ...
    (freebsd-questions)
  • [Critique me!] READ THIS NOW: WINXP DUAL BOOT/ASUS P4P plus useful links, too!
    ... Ok folks, I've gotten all but .5 yea's from several of the users on this ... -Software info: Kernel version, Window manager. ... Mailing lists: ...
    (Fedora)
  • Re: My New Home Page
    ... is that a list of folks who linked to you, ...  I can keep supplying you with all the lists and articles you ... There you go again Mike. ... to the injustice of the world and a few bad people? ...
    (rec.outdoors.fishing.fly)
  • Re: Janet and AOL boards
    ... Think of all the folks who are happy to use OE, ... There's a lot of stuff I hate about it, but I haven't found any other email client that provides an integrated system like Outlook ... I can't help but think that, and AOL dropping their Usenet feed, are ... I sometimes wish the lists I'm ...
    (rec.pets.dogs.behavior)