html/javascript

I'm trying to create a quiz with a bunch of radio buttons. When the user presses the submit button i wanted it to open a window showing the answers the person chose as well as whether or not they got the right answer. So i generated the following code: <br />
<br />
function DisplaySumm() <br />
{ <br />
SummWin = window.open('','NewWin', 'Toolbar=no,status=no,width=300,heigth=500') <br />
<br />
Message = "<center><h3>Quiz Results</h3></center><ul>" <br />
+ "<li><i>Name: </i><b>" + <br />
document.frmSites.realname.value + "</b>" ; <br />
+ "<li><i>Email: </i><b>" + document.frmSites.email.value + "</b>" ; <br />
+ "<li><i>Question 1: </i><b>" + document.frmSites.Q1Q1.value + "</b>" ; <br />
+ "<li><i>Question 2: </i><b>" + document.frmSites.Q1Q2.value + "</b>" ; <br />
<br />
SummWin.document.write(Message) ; <br />
} <br />
<br />
Along with the onclick function to set to open this function. When i try it it can read the email and name fields but none of the radio button values. it also opens up another window with the initial quiz in it. I can't figure out why. Please help.<!--content-->It is not likely that the problem is in it bit of code you have posted. The most important part of being able to solve a problem is to have the whole picture. It is best to have a link, because people don't seem to get the true situation into their post, even by cutting and pasting. If you cannot post a link, then put everything into a .zip file and attach it (images, external scripts, external style sheets) to your next post.<!--content-->
 
Back
Top