</style> </head> <body> <form action="prueba.php" method="post" name="form1"> <fieldset> <legend>Datos del Curso</legend> <?php //$base_datos->CharSet(); ?> <div style="margin:10px"> <label for="producto">Producto:</label><br /> <select style="width:200px;" id="producto" name="producto"><!--onchange="javascript:document.form1.submit();"--> <option value="-1">Seleccione...</option> <?php foreach ($joomla_class->lista_cursos() as $row) { $hd_code_product[] = $row[2]; ?> <option value="<?php echo $row[0] . ':' . $row[2]; ?> " <?php if ($product_id == $row[0] . ':' . $row[2]) { echo 'selected="selected"'; } ?> ><?php echo $row[1]; ?> </option> <?php