I wanted to keep the form data, after giving a submit on the page. Is there no way at all?
I wanted to keep the form data, after giving a submit on the page. Is there no way at all?
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<form action="" method="POST" >
<?php
$user = (!empty($_POST['user'])) ? $_POST['user'] : '';
?>
<input type="text" name="user" id="user" value="<?php echo htmlentities( $user ) ; ?>" />
<input type="submit" value="Enviar" />
</form>
</body>
</html>