I have a form on a page that the user fills out. When he's done and it's validated, I need the contents along with some other stuff to be printed before it's sent to the server. To accomplish this I'm using window.open on the Print button, then I intend to reference the fields from the page which opened it using the window.opener.formname.fieldname.value .
Problem is I have couple sets of radio buttons on the form that was filled out and I would like to print all the radio buttons showing the selected one so that the user acknowledges on the hard copy what his choices were.
If I was doing it server-side(ASP), I'd test the value of the incoming form value by executing a function, and I'd like to do it that way too, but I can't seem to figure out how to do that without putting <SCR IPT>function...</SCR IPT> tags with every radio button <INP UT> tag.
This also applies to where I'd like to write the values as HTML.
Is there an easier way? ...