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: R. Rajesh Jeba Anbiah <ng4rrjanbiah@rediffmail.com>
Date: Sat Oct 29 2005 - 19:25:01 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.

   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/
Received on Mon Nov 21 02:52:46 2005