In my first form I have some fields like this one :
//Définir les champs (Declaration of the fields)
$nomChamp = array ("nom" => "Nom *",
"prenom" => "Prénom *",
"rue" => "Rue et n° *",
"codepostal" => "Code Postal * ",
"localite" => "Localité *",
"telephone" => "Téléphone",
"gsm" => "Gsm",
"e_mail" => "E-mail *",
"pays" => "Pays *");
echo "<p><form action = 'InvulForm1Suite.php' mehod='post'> ";
echo "{$nomChamp['nom'] } :
<br><input type='text' name='nom' size='55' maxlenght='50'
value=" . $_POST['nom' . "<p>";
In the second form I do some test's to see if the fields are completed and if the information is structured the way it should be. If not I place them back into the fields (with the same formula I used before) and add a error message in the header to tell them that either the forgot to fill in a field or that the format used is not correct.
As i tested my form, I discovered that when I don't make a mistake and the form is filled in correctly, the variables are correct with spaces and everything, but as I replace them the are'nt.
Hopefully this will give you some information