Ver Mensaje Individual
  #8 (permalink)  
Antiguo 05/08/2008, 12:19
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Select dependientes con Ajax

Aqui tienes el problema:
Código PHP:
$registro[0]=htmlentities($registro[1]); 
Estas sobreescribiendo el valor por el de $registro[1], debes de quitar esa linea para que te imprima el id correcto en la opcion.

Saludos.