Document.write using form values

document.write using submitted form values, How would I go about doing this?

Im wanting the user to type some information into a simple form, which when submitted shows the values as normal text, in a new page.

Its so the user can print off the information they have inputted.

I thought about using prompt();, but due to the amount of questions, it would only get messy.

var fullName = prompt(“Full enter your FULL name”, “”);
document.write("Full name: " + fullName);

please advise,