Lo que quiero decir es que tiene que haber un botón de tipo
submit en el formulario si es que quieres que todos los usuarios sean capaces de enviarlo. Una cosa así sería más correcta:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<meta http-equiv="Content-type" content="text/html;charset=iso-8859-1" />
<meta name="Author" content="derkeNuke" />
<title>Página nueva</title>
<style type="text/css">
</style>
<script type="text/javascript">
function validarformulario(elFormulario){
if (elFormulario.Nombres.value == ""){
alert("Por Favor Ingrese Sus Nombres"); elFormulario.Nombres.focus(); return false;
}
if (elFormulario.Apellidos.value == ""){
alert("Por Favor Ingrese Sus Apellidos"); elFormulario.Apellidos.focus(); return false;
}
if (elFormulario.Direccion.value == ""){
alert("Por Favor Ingrese Una Direccion"); elFormulario.Direccion.focus(); return false;
}
if (elFormulario.Rut.value == ""){
alert("Por Favor Ingrese Su Rut"); elFormulario.Rut.focus(); return false;
}
if (elFormulario.Ciudad.value == ""){
alert("Por Favor Ingrese Una Ciudad"); elFormulario.Ciudad.focus(); return false;
}
if (elFormulario.Teléfono.value == ""){
alert("Por Favor Ingrese Su Número De Teléfono"); elFormulario.Teléfono.focus(); return false;
}
if (isNaN(elFormulario.Teléfono.value) == true){
alert("Telefono Inválido.\nIngrese Su Teléfono Solo Con Caracteres Numéricos"); elFormulario.Teléfono.focus(); elFormulario.Teléfono.select(); return false;
}
if (elFormulario.Email.value == ""){
alert ("Por Favor Ingrese Su Email"); elFormulario.Email.focus(); return false;
}
if (elFormulario.Email.value.indexOf('@', 1) == -1 || elFormulario.Email.value.indexOf('.',
elFormulario.Email.value.indexOf('@', 0)) == -1) {
alert("Dirección de e-mail inválida"); elFormulario.Email.focus(); return false;
}
return true;
}
</script>
</head>
<body>
<form method="post" action="mailto:[email protected]" name="form1">
<table width="220" border="0">
<tr>
<td width="66">Nombres</td>
<td width="114"><input type="text" name="Nombres" size="20"/></td>
</tr>
<tr>
<td width="66">Apellidos</td>
<td width="114"><input type="text" name="Apellidos" size="20"/></td>
</tr>
<tr>
<td width="66">Direccion</td>
<td width="114"><input type="text" name="Direccion" size="20"/></td>
</tr>
<tr>
<td width="66">Rut</td>
<td width="114"><input type="text" name="Rut" size="20"/></td>
</tr>
<tr>
<td width="66">Ciudad</td>
<td width="114"><input type="text" name="Ciudad" size="20"/></td>
</tr>
<tr>
<td width="66">Teléfono</td>
<td width="114"><input type="text" name="Teléfono" size="20"/></td>
</tr>
<tr>
<td width="66">Email</td>
<td width="114"><input type="text" name="Email" size="20"/></td>
</tr>
<tr>
<td width="66"><input type="submit" value="Enviar" onclick="return validarformulario(this.form)"/></td>
<td width="66"><input type="reset" value="Borrar"/></td>
</tr>
</table>
</form>
</body>
</html>
El por qué he cambiado tantas cosas lo encontrarás en el
validador HTML, XHTML de la w3c.
Un saludo