[support] creating drop down menu on a page
Maurice Mengel
mauricemengel at gmail.com
Tue Mar 2 16:01:24 UTC 2010
I looked into something similar recently, but without luck so far. I wonder
if FORM API wouldn't be the way to go. Well described in Pro Drupal
Development by John K. VanDyk or
http://api.drupal.org/api/drupal/developer--topics--forms_api.html/6
hope that helps
On Tue, Mar 2, 2010 at 2:09 PM, spartaguy spartaguy
<spartaguy300 at gmail.com>wrote:
>
>
> Hi,
>
> I am having problems setting up a drop down menu on a page.
>
> The page content is PHP.
>
> I would like to have a drop down menu with a few fields (ie name/date/size)
>
> that people can choose from. This selection would then be stored as
> DROP_DOWN_FIELD
> below.
>
> <?php
> $result = db_query("SELECT * FROM {fruits} ORDER BY $DROP_DOWN_FIELD
> DESC");
> while ($row = db_fetch_object($result))
> {
> $fields = array(); // define empty array
> array_push($fields,$row); // push row object onto the array
> print_r($row); */
> ?>
>
>
> Can anyone provide any help?? I have been trying for ages without any luck.
>
>
> Paul
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100302/8f6eacb1/attachment.html
More information about the support
mailing list