document.write and forms

Giganews Newsgroups
Subject: document.write and forms
Posted by:  John (..@laycus.con)
Date: Mon, 21 Jul 2003

A straight forward problem I think but my knowledge of JavaScript lets
me down.

I am taking in a lot of input using a form. After preparing  an email
(FormMail.pl) I then use 'document.write' to create a new page with
all the users details nicely formatted. This includes checking radio
buttons, checkboxes etc.

Problem is as soon as I use the first 'document.write', the form and
all its contents are undefined. I have moved some of them to variables
for the time being but this is cumbersome.

Any solutions to what must be a simple issue greatly appreciated.

John

Replies