How to print the form before the submission?