I have a small tell a friend form made up with input fields My Name, My E-mail, Friends Name and Friends E-mail fields and a Send button.

Each of the fields are scripted like follows:
<?php
if (strlen($m_name) <2 )
{

$write .="Please enter your Name<BR />";
$status = "unchecked";
}
?>
It all works until I introduce a Go Back link facility .....

To validate I am seeking to install a GoBack link as follows to enable visitor go back to form and do corrections:

echo '<a href="javascript:history.go(-1)">Go Back to Form</a>';

When using this arrangement to 'Go Back to Form' all the details already filled in by the visitor have been emptied from the fields and they would have to start filling in the form all over again!

Is there a simple workround to this ? What am I missing?