Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/11/2002, 19:36
Avatar de .
.
 
Fecha de Ingreso: mayo-2002
Ubicación: Tampico
Mensajes: 906
Antigüedad: 22 años, 10 meses
Puntos: 1
puedes hacer un arreglo con las diferentes direcciones a las que pudieras mandar el correo

function EnviarMail(){
var correo = new Array(
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]'
)
var a = document.Forma.mail.value;
document.Forma.Destino.value = correo[a];
}
<form name=Forma onsubmit="EnviarMail()">
<input type=hidden name=Destino id=Destino>
<input type=button name=mail value=1>[email protected]
<input type=button name=mail value=2>[email protected]
<input type=button name=mail value=3>[email protected]
<input type=button name=mail value=4>[email protected]
</form>