NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Registro de Clientes</title>
<link rel="stylesheet" type="text/css" href="estilo.css">
</head>
<body>
<form name="form1" id="form1" method="get" action="validacion.jsp" onsubmit="return valida()">
<script src="validacion.js"></script>
<div class="centro">
<h3>REGISTRO DE CLIENTES</h3>
</div>
<div class="div">
<label class="label" for="login">LOGIN :</label>
<input type="text" id="login" name="login" />
</div>
<div class="div">
<label class="label" for="clave">CLAVE :</label>
<input type="password" id="clave" name="clave" />
</div>
<div class="div">
<label class="label" for="comuna">COMUNA :</label>
<select name="comuna" id="comuna" >
<option value="0"> Seleccione comuna </option>
<option value="1">Macul</option>
<option value="2">Providencia</option>
<option value="3">Puente Alto</option>
<option value="4">La Florida</option>
</select>
</div>
<div class="div">
<label class="label" for="hobbies">HOBBIES :</label>
<div class="check">
<input type="checkbox" id="hobbies0" name="hobbies" value="LEER">
<label for="hobbies0">LEER</label><br/>
<input type="checkbox" id="hobbies1" name="hobbies" value="RADIO">
<label for="hobbies1">RADIO</label><br/>
<input type="checkbox" id="hobbies2" name="hobbies" value="TELEVISOR">
<label for="hobbies2">TELEVISOR</label><br/>
</div>
</div>
<div class="div">
<label class="label">GENERO :</label>
<input type="radio" id="generoF" name="genero" value="FEMENINO">
<label for="generoF">FEMENINO</label>
<input type="radio" id="generoM" name="genero" value="MASCULINO">
<label for="generoM">MASCULINO</label>
</div>
<div class="centro">
<input type="submit" name="btnEnviar" id="btnEnviar" value="Enviar" />
<input type="reset" name="btnLimpiar" id="btnLimpiar" value="Restablecer" />
</div>
</form>
</body>
</html>
function valida(){
var login = document.getElementById("login");
var expLogin = /^[a-z0-9]{6,12}$/;
if(login.value==""){
alert("Login es obligatorio");
login.focus;
return false;
}
if(!expLogin.test(login.value)){
alert("Solo minusculas y numeros. nEntre 6-12 caracteres");
}
var clave= document.getElementById("clave");
var reclave= document.getElementById("reclave");
var expClave=/^[A-Za-z]{3}d{4}$/;
if(clave.value==""){
alert("Clave es obligatoria");
calve.focus;
return false;
}
if(!expClave.test(clave.value)){
alert("Ingresar 3 letras seguido de 4 numeros");
clave.focus;
return false;
}
if(clave.value != reclave.value){
alert("Las claves no coinciden");
focus.clave;
return false;
}
var nombre = document.getElementById("nombre");
if(nombre.value==""){
alert("EL nombre es obligatorio");
nombre.focus;
return false;
}
var expNombre=/^[A-Za-z0-9]{2,15}$/;
if(!expNombre.test(nombre.value)){
alert("Nombre debe estar entre /n 2 y 15 caracteres");
focus.nombre;
return false;
}
var direccion = document.getElementById("direccion");
if(direccion.value==""){
alert("La Direccion es obligatoria");
direccion.focus;
return false;
}
var edad =document.getElementById("edad");
var expEdad = /^[0-9]{1,3}$/;
if(edad.value==""){
alert("La edad es obligatoria");
edad.focus;
return false;
}
if(!expEdad.test(edad.value)){
alert("Edad mayor que 1 y menor que 999");
focus.edad;
return false;
}
return true;
}
@charset "utf-8";
/* CSS Document */

#form1 {
width:550px;
margin:0 auto;
border:0px;
background-color:#CCC;
}

.label {
display:block;
width:100px;
text-align:right;
margin-right:3px;
float:left;
}
.centro {
text-align:center;
padding-top:10px;
padding-bottom:10px;
}

.div{
padding:10px 0px 10px 60px;
}

.check{
display:inline-block;
width:150px;
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.