Skip to content

Instantly share code, notes, and snippets.

@nicolapiz
Created March 2, 2014 17:54
Show Gist options
  • Save nicolapiz/9310620 to your computer and use it in GitHub Desktop.
Save nicolapiz/9310620 to your computer and use it in GitHub Desktop.
documento html que contiene el formulario que recoge los datos del usuario que vamos a ingresar en la base de datos por ajax.
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ejercicio 3</title>
<script language="JavaScript" type="text/javascript" src="Ajax.js"></script>
</head>
<body>
<!--Guardar los datos de un formulario en la base de datos por ajax-->
<form id="frm1" name="frm1" action="" onsubmit="enviarDatosUsuario(); return false">
<label id="dni">DNI:</label><input type="text" name="id" id="id"/><br />
<label id="nombre">Nombre:</label><input type="text" name="name" id="name"/><br />
<label id="apellido">Apellido:</label><input type="text" name="surname" id="surname"/><br />
<input type="submit" value="Enviar" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment