![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/11/2009, 14:27
|
![Avatar de dcreate](http://static.forosdelweb.com/customavatars/avatar326327_7.gif) | | | Fecha de Ingreso: octubre-2009 Ubicación: Veracruz
Mensajes: 536
Antigüedad: 15 años, 3 meses Puntos: 22 | |
Respuesta: Como recuperar el texto tal cual se envio de un select algo asi:
<?php
include "conexion.php";
conectar();
$consulta=mysql_query("SELECT * FROM tabla");
echo "<select name='campo'id='campo'>";
echo "<option value='0'>Elige..</option>";
while($registro=mysql_fetch_row($consulta))
{
echo "<option value='".$registro[0]."'>".$registro[0]."</option>";
}
echo "</select>";
?> |