Im not very good at Javascript, but im pretty sure this is possible.

What is the scripting to save certain variables such as a title for the page, a header, a number, and a picture using forms, then after pressing a submition button, have a page created using those variables?

All help would be very appreciated.