OK, I have this code snippet
What I would like to do is take the value entered into numleaders and make that the upper limit in the for loop. Everything else in the page is in vbscript, I write it all to a SQL Server database. Can I incorporate some javascript here to do what I would like to do? If so, can somebody help me out?
Thanks!
WB
Code:
<tr>
<td colspan="2"><hr>
<div align="left">Number of Adult Leaders: <input type="text" name="numleaders" /></div>
</td>
</tr>
<% Dim c : c = 1 %>
<% FOR c = 1 TO 10 %>
<tr>
<td colspan="2"><HR>
<div align="left"><strong><%=c%>) Name: <input name="name<%=c%>" type="text" id="name<%=c%>" size="40">
</strong>
</div>
</td>
</tr>
<tr>
<td colspan="2"><div align="left"><strong>E-Mail: <input name="email<%=c%>" type="text" id="email<%=c%>"></strong>
</div>
</td>
</tr>
<tr>
<td colspan="2"><div align="left"><strong>Age: <input name="age<%=c%>" type="text" id="age<%=c%>"></strong>
</div>
</td>
</tr>
<tr>
<td colspan="2"><div align="left"><strong>Gender: <input name="gender<%=c%>" type="radio" id="gender<%=c%>" value="Male">
Male <input name="gender<%=c%>" type="radio" id="gender<%=c%>" value="Female"> Female </strong>
</div>
</td>
</tr>
<tr>
<td colspan="2"><div align="left"><strong>Van Driver? <input name="vandriver<%=c%>" type="radio" id="vandriver<%=c%>" value="Yes">Yes
<input name="vandriver<%=c%>" type="radio" id="vandriver<%=c%>" value="No"> No</strong>
</div>
</td>
</tr>
<tr>
<td colspan="2" height="44"><div align="left">
<input type="checkbox" name="skills<%=c%>" value="construction"> Construction (masonry, carpentry, electrical, plumbing, roofing, etc.)<br />
<input type="checkbox" name="skills<%=c%>" value="worship"> Worship leading/music<br />
<input type="checkbox" name="skills<%=c%>" value="vbs"> VBS/Children's Ministry<br />
<input type="checkbox" name="skills<%=c%>" value="speaking"> Speaking<br />
<input type="checkbox" name="skills<%=c%>" value="medical"> Medical
</div>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<% next %>
What I would like to do is take the value entered into numleaders and make that the upper limit in the for loop. Everything else in the page is in vbscript, I write it all to a SQL Server database. Can I incorporate some javascript here to do what I would like to do? If so, can somebody help me out?
Thanks!
WB