Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/10/2009, 17:58
PP2
 
Fecha de Ingreso: noviembre-2005
Mensajes: 146
Antigüedad: 18 años, 6 meses
Puntos: 0
Respuesta: Seleccion automatica de un combobox

balbung deberia quedar de esta forma... si no tienes tus variables globales activadas.

Código HTML:
<tr> 
        <td align="left"><b><?php echo (Categoria) ?></b></td> 
        <td> 
            <select name="topicId"> 
 <option value=""><?php echo (Categoria)?></option> 
                <?php  
                 $services= db_query('SELECT topic_id,topic FROM '.TOPIC_TABLE.' WHERE isactive=1 ORDER BY topic_id'); 
                 while (list($topicId,$topic) = db_fetch_row($services)){ 
                    $selected = ($info['topicId']==$_POST['topicId'])?'selected':''; ?> 
                    <option value="<?php echo $info['topicId']?>"<?php echo $selected?>><?php echo $topic?></option> 
                <?php  
                 }?> 

                <!-- <option value="0" ><?php echo (I_C_OPEN_GENERAL_INQUIRY) ?></option> --> 
            </select> 
        </td> 
    </tr>