Is this what you mean
Thanks Jason, but I still don't follow at all. When I make the changes suggested that all I get is a lot of uncorrectable syntax errors.
It looks to me like the only way to buid an edit page is to rewrite it all from the start, get it working and then add the validations.
Will do that and come back again if I'm stuck.