Thanks, your suggestion worked.
To pass form data to a second, third page etc. I did the following:
page 1 - all form fields set to $array[name], $array[email], $array[phone],.....
So now all the data from the form is in one array.
page2 - to pass the array onto another page :
-serialize the array eg. $string=serialize($array)
-to remove quotes from string so that the hidden form field (....value = "$string") will work I added the htmlspecialchars($string) right after I serialized the array
page 3 - have to remove the escapes that php places in the string before you can unserialize to get the array back for eg. $string = stripslashes($string);
Then $array = unserialize($string);
Works like a charm and I don't have to make dozens of hidden form fields to maintain data.
Having the form data in an array Ican also use the following on page 2 to easily remove escapes for fields where the user includes an apostrophy which also saves many lines;
foreach($array as key_var =>value_var) {
$array[$key_var] = stripslashes($array[$key_var]);
}
Thanks for all your help!