I strongly recommend to also use PHP to check the entries made in a form as a user can simply turn JavaScript support off in their browser.
He is correct though, there is nothing worse than losing all the data you entered. The usual protection against this is to say your page that they load is currently contact.html and the php script is contact.php simply stick the html code underneath the php block, meaning:
<?php
blah
?>
<html>
blah
</html>
and then have <form action="/contact.php" method="post"> and then for all the inputs, do:
<input name="namehere" type="text" value="<?=$name?>" />
be sure to replace namehere with the html name and the $name with the PHP variable. for textareas.....
<textarea><?=$name?></textarea>
Clear as mud?
