Hvad er der i vejen med dette script, må man ikke navngive parametre med
tal?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<HEAD>
<TITLE>Answering Survey</TITLE>
<SCRIPT type="javascript">
function validate()
{
if(!(mainform.0[0].checked || mainform.0[1].checked ||
mainform.0[2].checked || mainform.0[3].checked))
{
alert('Please Answer on Question 'This is the first question', Scale..:
'importance');
event.returnValue=false;
}
if(!(mainform.1[0].checked || mainform.1[1].checked ||
mainform.1[2].checked || mainform.1[3].checked))
{
alert('Please Answer on Question 'This is the first question', Scale..:
'Satisfaction');
event.returnValue=false;
}
}</SCRIPT></HEAD>This is Survey..:<h1>Pre launch</h1>
<br>which is about..:This is the Pre launch database.<br>
<table><tr>
<td>
<table BORDER=1>
<tr><td>Scale..:importance</td></tr>
<tr><td>0</td><td>poor</td></tr>
<tr><td>1</td><td>less poor</td></tr>
<tr><td>2</td><td>okay </td></tr>
</table>
</td>
<td>
<table BORDER=1>
<tr><td>Scale..:Satisfaction</td></tr>
<tr><td>0</td><td>happy</td></tr>
<tr><td>1</td><td>not happy</td></tr>
<tr><td>2</td><td>sad</td></tr>
</table>
</td>
</tr></table>
<FORM name="mainform" action="submit.aspx" method="post"
onsubmit="return validate();">
<p>Question..:This is the first question</p><br>
importance
<INPUT TYPE=radio NAME="0" Checked=true VALUE="52#17#3">0
<INPUT TYPE=radio NAME="0" Checked=true VALUE="52#17#20">1
<INPUT TYPE=radio NAME="0" Checked=true VALUE="52#17#21">2
<br>Satisfaction
<INPUT TYPE=radio NAME="1" Checked=true VALUE="52#25#17">0
<INPUT TYPE=radio NAME="1" Checked=true VALUE="52#25#22">1
<INPUT TYPE=radio NAME="1" Checked=true VALUE="52#25#23">2
<br><input type="submit" value="submit answers"></FORM></html>
--
Leveret af:
http://www.kandu.dk/
"Vejen til en hurtig løsning"