Ver Mensaje Individual
  #8 (permalink)  
Antiguo 22/05/2002, 11:35
reyj
 
Fecha de Ingreso: febrero-2002
Mensajes: 100
Antigüedad: 22 años, 2 meses
Puntos: 0
Re: cómo leo los valores de un select muliple en php?

<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
function preparar(Opciones, Opciones2)
{
Opciones2.value='';
for (i=0; i<Opciones.options.length; i++)
{
if(Opciones.options.selected)
Opciones2.value += Opciones.options.value+":";
}
}
</script>
<script language="JavaScript">
<!--
function getSels3(){
var list=document.forms['main'].elements['Team'];
var sels="";
for (i=0;i<list.options.length;i++)
if (list.options[I].selected)
{
sels += list.options[i].text+"\n";
document.main.opciones2.value += list.options[i];
}
if (sels.length>0)
{
document.main.opciones2.value+= +sels;
document.forms.submit();
}
else alert("You have not selected anything.");
}
//-->
</script>
<script language="JavaScript">
<!--
function getSels(){
var list=document.forms['main'].elements['Team'];
var sels="";
for (i=0;i<list.options.length;i++)
if (list.options[i].selected)
sels += list.options.text+"\n";
if (sels.length>0)
{
document.forms['main'].opciones2+= +sels;
document.forms.submit();
}
else alert("You have not selected anything.");
}
//-->
</script>