Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/05/2003, 19:08
Avatar de Gurrutello
Gurrutello
 
Fecha de Ingreso: enero-2002
Ubicación: Ontario,Toronto [Canada]
Mensajes: 2.017
Antigüedad: 22 años, 10 meses
Puntos: 6
hola esto seria 100% dreamweaver

<html>
<head>
<title>Formulario</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_valida teForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' debe contener una direccion de email.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' debe contener numero entre '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' se requiere.\n'; }
} if (errors) alert('Ocurrió un error:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>

<body bgcolor="#CCCCCC" text="#000099" link="#000099" vlink="#000099" alink="#000099">
<form action="aspemail.asp" method="post" name="soporte" id="soporte" onSubmit="MM_validateForm('nombre','','R','correo' ,'','R','modelo4','','R','problema','','R');return document.MM_returnValue">
<table width="100%" height="127" border="0" cellspacing="0">
<tr>
<td width="21%" height="35"><strong><font color="#000066" size="2" face="Arial, Helvetica, sans-serif">Nombre:</font></strong></td>
<td colspan="4"><font color="#000099" size="2" face="Arial, Helvetica, sans-serif">
<input name="nombre" type="text" id="nombre" size="35">
<font color="#FF0000" size="3"><strong> *</strong></font> </font></td>
</tr>
<tr>
<td height="31"><strong><font color="#000066" size="2" face="Arial, Helvetica, sans-serif">Teléfono:</font></strong></td>
<td colspan="3"><font color="#000099" size="2" face="Arial, Helvetica, sans-serif">
<input name="telefono" type="text" id="telefono" size="20">
</font><font size="1" face="Arial, Helvetica, sans-serif">Favor de incluir
clave lada.</font><font color="#000099" size="2" face="Arial, Helvetica, sans-serif">&nbsp;
</font></td>
<td width="25%"> </td>
</tr>
<tr>
<td height="30"><strong><font color="#000066" size="2" face="Arial, Helvetica, sans-serif">E-mail:</font></strong></td>
<td colspan="4"><font color="#000099" size="2" face="Arial, Helvetica, sans-serif">
<input name="correo" type="text" id="correo" size="35">
<font color="#FF0000"></font><font color="#000099" size="2" face="Arial, Helvetica, sans-serif"><font color="#FF0000" size="3"><strong>*</strong></font>
</font></font></td>
</tr>
<tr>
<td height="31"><strong><font color="#000066" size="2" face="Arial, Helvetica, sans-serif">Modelo:</font></strong></td>
<td width="23%"><strong><font color="#000099" size="2" face="Arial, Helvetica, sans-serif">
<input name="modelo" type="text" id="modelo4" size="20">
<font color="#000099" size="2" face="Arial, Helvetica, sans-serif"><font color="#FF0000" size="3"><strong>*</strong></font>
</font> </font></strong></td>
<td width="8%"> </td>
<td width="23%"> </td>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0">
<tr>
<td width="19%" height="21"> </td>
<td width="81%"> </td>
</tr>
</table>
<table width="100%" height="42" border="0" cellspacing="0">
<tr>
<td width="31%" valign="top"><font color="#000066" size="2" face="Arial, Helvetica, sans-serif"><strong>Solicitud:</strong></font></td>
<td width="69%"><textarea name="problema" cols="80" rows="5" id="problema"></textarea></td>
</tr>
</table>
<table width="100%" height="69" border="0" cellspacing="0">
<tr>
<td> </td>
<td><div align="center">
<input type="submit" name="Submit" value="Enviar">
</div></td>
<td><div align="center">
<input type="reset" name="Submit2" value="Reestablecer Campos">
</div></td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>


espero que te sirva, el unico campo que no es obligatorio seria el del telefono