How to print the form after submission?