Jump to content

<select> click help


UnknownPlayer

Recommended Posts

This is the code, when i click on this <select> i wonna to appear new <select>, next to first one, with new items.

Any idea how i can do that?

 

<p><b>Departman:</b> <select name="departmani">
    <?php
        echo "<option value=\"izaberi\">-- Izaberite Departman</option>";
        $query = "SELECT * FROM departmani";
        $result = mysql_query($query, $connection);
        for ($i = 0; $i < mysql_num_rows($result); $i++) {
            $dep = mysql_result($result, $i, "departman");
            echo "<option value=\"{$dep}\">{$dep}</option>";

        }
    ?>
</select></p>

Link to comment
https://forums.phpfreaks.com/topic/199061-click-help/#findComment-1044904
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.