$_SESSION['nombre']=$_POST['nombre']; <input type="text" name="nombre" value="<?=$_SESSION['nombre']?>">