I have a question re: validation.
For example, if i have this:
<?
if ($submit)
{
if (!$_POST[name | !$_POST[email])
{
echo "Name or Email are missing.";
}
else
{
echo "Both are there.";
}
}
else
{
include ("form.html");
}
Now, the question...If i leave out a field, it display the error...But, when I click back, the field I DID FILL OUT (not empty) is now clear.
So the field that I DID NOT MISS also appears empty when I click on back. Is there anyway to keep the data that has already been entered in the form field, when I click on back upon a validation?
THanks,