You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Este es el Código:Código: php <html>
<head>
<script>function formulario(f) {
if (f.nombre.value == '') { alert ('El nombre esta vacío');
f.nombre.focus(); return false; }
if (f.dni.value == '') { alert ('El DNI esta vacío');
f.dni.focus(); return false; } return true; }
</script>
<script>function formulario(f) {
if (f.telefono.value == '') { alert ('El Telefono esta vacío');
f.telefono.focus(); return false; }
if (f.email.value == '') { alert ('El email esta vacío');
f.email.focus(); return false; } return true; }
</script>
<link href="miarchivo.css" rel="stylesheet"type="text/css"/>
<div class="imagen"></div>
<p align="center"><font color="#CC6633" face="Comic Sans MS" size="2">
<marquee> Gracias por Elegirnos, Registrese Por Favor</marquee></font></p>
<style>
input{
-moz-border-radius:1em;
-webkit-border-radius:1em;
border-radius:1em;
}
.Estilo1 {
color: #D5442B;
font-style: italic;
font-weight: bold;
}
.Estilo2 {
color: #B00B34;
font-weight: bold;
}
</style>
<style>
.a1{ position:absolute;left:230px;}
.a1:hover{background-color:#CCC;}/* hover significa cuando estés encima de la etiqueta a1 cambia de color*/
</style>
<title>Programa</title>
</head>
<p><center> <font size="30" color=#CC6633> <em><strong> Instituto Nuevo Cuyo</strong></em></font>
</center></p>
<body background="Alta2.jpg" marginwidth="50" marginheight="50">
<div class= "input">
<br>
<br>
<form action="guardar.php" onsubmit="return formulario(this)" method="post">
<p> <span class="Estilo2">Apellido y Nombre<b>:</b></span>
<input class="a1" type="text" name="nombre" />
</p>
<p><span class="Estilo2"> DNI</span>
<input class="a1" type="text" name="dni" />
</p>
<p><span class="Estilo2"> Telefono </span>
<input class="a1" type="text" name="telefono" /></p>
<p><span class="Estilo2"> Correo </span>
<input class="a1" type="text" name="email" /></p>
<p><span class="Estilo2"> Domicilio </span>
<input class="a1" type="text" name="domicilio" /></p>
<p><span class="Estilo2"> Curso</span>
<input class="a1" type="text" name="curso" /></p>
<p><span class="Estilo2"> Cuota</span>
<input class="a1" type="text" name="dias" /></p>
<p><span class="Estilo2"> Horario </span>
<input class="a1" type="text" name="horario" /></p>
<p><input type="submit" name="submit" value="Ingresar" /></p>
</form>
<a href="index.php?" title="Atras"><img src="continuar.gif" width="19" height="15" border="0"> Volver</a></div>
</body>
</html>
y se ve asi:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
quitale ese return no te sirve de nada y ya funciona xD
es decir en ves de esto:
<form action="guardar.php" onsubmit="return formulario(this)" method="post">dejas esto:
<form action="guardar.php" onsubmit="formulario(this)" method="post">y funciona xD
aunque debes de ver una manera que no te rediriga al guardar.php por que vendria siendo lo mismo
solo te saldria el alerta pero el usuario saldria registrado igual cuando acepte el boton de alerta



https-everywhere no lo he probado vamos a ver thx por la ayuda 





