<?php
	//validar que se envian un valor
	if(isset($_POST['btnSub'])){
		$nom = $_POST['nombre'];
		$cl1 = $_POST['clave'];
		$cl2 = $_POST['clave2'];
		$corr=$_POST['correo'];
		$fn=$_POST['fech'];

	}
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Registro</title>
	<link rel="stylesheet" href="stile.css">
</head>
<body>
	<!-- https://symbl.cc/ -->
	<form action="validaF2.php" method="post">
		<h1>Formulario de Registro</h1>
		<input type="text" name="nombre" placeholder="&#128100;Usuario" value="<?php if(isset($nom)) echo $nom ?>">
		<input type="text" name="correo" placeholder="&#128100;Correo electronico" value="<?php if(isset($nom)) echo $corr ?>">
		<input type="password" name="clave" placeholder="&#128272;Contraseña" value="<?php if(isset($cl1)) echo $cl1 ?>">
		<input type="password" name="clave2" placeholder="&#128272;Confirmar contraseña" value="<?php if(isset($cl2)) echo $cl2 ?>">
		<input type="date" name="fech" placeholder="&#128272;Confirmar contraseña" value="<?php if(isset($cl2)) echo $fn ?>">
		<input type="submit" id="btnSub" name="btnSub" value="Ingresar">
		<p class="enlace"><a href="loginF.html">Iniciar sesión</a></p>
	</form>
</body>
</html>