<label>Subtipo</label> <select name="subtipo" id="cmbSubTipo" class="form-control" style="text-transform: uppercase"> <?php include_once "../controller/cExpediente.php"; $ex = new cExpediente(); $lista = $ex->listaSubtiposExpedient($_POST['tipo']); while ($l = $lista->NextRow()) { ?> <option value="<?php echo $l['id_tipo_expedientes']; ?> "><?php echo $l['nombre']; ?> </option> <?php } ?> </select>