I have a form of html and php. After submitted the value of the form, the value of form that I was typed before is gone. Then, how to make the value is never gone?
Here my sample form:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<title>Validate an Email</title>
<form action="" method="POST">
Enter email: <input type="text" name="email" size="30" />
<input type="submit" name="check" value="Check Email" />
$email = $_POST['email'];
echo "Email is not valid <br />";
echo "Email is valid. <br/>";
Form before and after enter email:
After form submitted:
Look, the email value is gone, right?
But, what I need to do is look like this:
I mean, the value of text is never be gone after submitted. Anyone knows how to do that?