echo $arr[1]; ?> </option> <?php } ?> </select> </div> </form> <form action="index.php" method="post" name="f1" id="f1"> <div> <label> <select name="iname"> <option value="" selected="selected">MODEL</option> <?php $modelname = $obj->allname($mid); while ($arr = mysql_fetch_row($modelname)) { ?> <option value="<?php echo $arr[0]; ?> " selected="selected"><?php echo $arr[0]; ?> </option> <?php } ?> </select> </label> </div>