when you comes back , and the HTML is producted (printed, manuafctured) my the echo ...that mean you are calling the PHP again to be loaded, that means also to re write the HTML codes ...
thats why it is empty ...
but when no HTML wrote by the echo, that means the Fields, will have the same value, no blanks ...