This is actually a small excerpt from a program I've written in the
past... hope it helps...

function show_downtime_form() {
        global $conf_file;
        global $filter;
        foreach ( $data as $line ) {
                $bang=explode(':', $line);
        echo '<div align="center"><hr width="300">';
        echo '<form name="inputform" action="reports.php"
        echo 'Match Idents To:<br>';
        echo '<input type="text" name="filter" value="'.$filter.'">';
        echo '<br> - OR Select - <br>';
        echo '<select name="temp" onchange="doEcho()">';
                echo '<option selected>--From Current Idents--';
                foreach($idents as $ident) {
                        echo '<option value="'.$ident.'">'.$ident;
        echo '</select>';
        echo '<br>';
        echo '<input type="submit" value="search">';
        echo '</form>';
        echo '</div>';

-----Original Message-----
From: ...::: M.E. Suliman :::... [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 20, 2002 9:57 AM
Subject: [PHP] drop down box


I need to get info from a specific field in a MySQL database to appear
in a
drop box as options. Has anyone any ideas on this.



PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to