// Assuming that we have built an SQL query that returns what we
    // want, we can then use the following code to build a pull-down
    // selection, using the 'select' HTML construct.  Note that this
    // must be inside a form.

    // taking a table like this:
    //  manufacturer    |      id
    //  Ford               |       1
    //  Chevy            |       2
    //  Toyota            |       3

    // the form will show the name of the manufacturer in the pull down
    // list, but will send the value of the 'id' through, in the 
    // 'my_select_list' variable.  That is, you could say:
    //  $their_choice = $_POST['my_select_list'];

    $ar=mysql_query($sql, $gl);
    print "<form action='some_page_to_process_this_form.php' method=POST>\n";
    print "<select name='my_select_list'>\n";
    while ($r = mysql_fetch_assoc($ar)) {
        print "<option label='" . $r['manufacturer'] . "' value='" . $r['id'] . "'>" . $r['manufacturer'] . "</option>\n";
    }
    print "</select>\n";

    // Don't forget to include such things as submit buttons and
    // whatnot afterwards.

    print "<input type='submit' value='This is my final answer'>\n";
    print "</form>\n";