Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/02/2006, 21:50
Avatar de richardinj
richardinj
 
Fecha de Ingreso: enero-2005
Ubicación: Ciber Espacio
Mensajes: 2.180
Antigüedad: 19 años, 3 meses
Puntos: 11
gracias.. ahora tengo otro problemilla...

http://www.unsm.edu.pe/INTELIGENCIA_...CIAL/index.php

cuando paso las variables de una lista a a la otra y envio los datos.... me muestra los valores de los textos... , como puedo hacer para que me muestre el codigo???


Cita:
if (isset($_POST['gustos']))
{ $gustos=$_POST['gustos']; }
else
{ die("No se encontraron gustos ");}
for ($i=0;$i<count($gustos);$i++)
{
echo "<br> gustos " . $i . ": " . $gustos[$i];
}


Cita:
function agregar() {
m1=document.getElementById('ingredientes');
m2=document.getElementById('gustos[]');

m1len = m1.length ;
for ( i=0; i<m1len ; i++){
if (m1.options[i].selected == true ) {
m2len = m2.length;
m2.options[m2len]= new Option(m1.options[i].text);
}
}
for ( i = (m1len -1); i>=0; i--){
if (m1.options[i].selected == true ) {
m1.options[i] = null;
}
}
}