Project to do simulation testing (me teacher). Page one writes in real time to page two...both displayed at sam time with frames. Code below. Problem...I want to keep score. Each choice needs a value between (-3 and 3) to be summed for final score. second problem, I want checkbox to be permanent, that is once selected no unselect. Thanks fro your help. also, all on a windows server asp willing to go with php, java etc.
Page one code........
Page two...........
Page one code........
Code:
<html>
<base target="main">
<%
dim dmaking
dmaking=Request.Form("dmaking")
%>
<body>
<form action="ben2.asp" method="post">
<p>Which measures do you wish to assess?</p>
<input type="checkbox" name="dmaking" value="40 breaths per minute" onclick="this.form.submit();">Respiratory Rate
<br />
<input type="checkbox" name="dmaking" value="</br> 200/140" onclick="this.form.submit();">Blood Pressure
<br />
<input type="checkbox" name="dmaking" value="</br> 188 beats per minute" onclick="this.form.submit();">Heart rate
<br />
<input type="checkbox" name="dmaking" value="</br> Blue" onclick="this.form.submit();">Color
<br />
<input type="checkbox" name="dmaking" value="</br> Doctor disagrees" onclick="this.form.submit();">Cat Scan
<br />
<input type="checkbox" name="dmaking" value="</br> Doctor disagrees" onclick="this.form.submit();">Brain surgery
<p>
<br />
<a target="_self" href="#section2">click here to go to section 2</a> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<a name="section2"> Welcome To the next Section 2</a>
<p>Which intervention is most appropriate?</p>
<p>Select only one unless instructed to choose another.</p>
<input type="checkbox" name="infogathering" value="Doctor disagrees Nasal canula not ordered" onclick="this.form.submit();">Nasal Canual
<br />
<input type="checkbox" name="infogathering" value="<br /> Doctor disagrees Non rebreathing Mask not ordered" onclick="this.form.submit();">Non rebreathing Mask
<br />
<input type="checkbox" name="infogathering" value="<br /> Non rebreathing Mask" onclick="this.form.submit();">Heart rate
<br />
<input type="checkbox" name="infogathering" value="<br /> Doctor just left the building" onclick="this.form.submit();">Send to real hospital
<br />
<input type="checkbox" name="infogathering" value="<br /> Doctor disagrees dip stick" onclick="this.form.submit();"> Bronchodialator therapy
<br />
<input type="checkbox" name="infogathering" value="<br /> Doctor disagrees Brain surgery just plain stupid" onclick="this.form.submit();">Brain surgery
<br />
<%
if dmaking<>"" then
Response.Write("<p> " & dmaking & "</p>")
end if
%>
</form>
</body></html>
Page two...........
Code:
<html>
<meta http-equiv="Content-Language" content="en-us">
<%
dim infogathering
infogathering=Request.Form("infogathering")
%>
<%
dim dmaking
dmaking=Request.Form("dmaking")
%>
<body>
<p>Responses to your choices:</p>
<%
if infogathering<>"" then
Response.Write("<p> " & infogathering & "</p>")
end if
if dmaking<>"" then
Response.Write("<p> " & dmaking & "</p>")
end if
%>
</body>
</html>
Comment