function testform() {
for (i=0; i <=1; i++) {
if (document.myform.control.value) == NULL {
alert(Please enter a control name)
}
}
</SCRIPT>
<FORM NAME="myform">
<TEXTAREA NAME="control" COLS=40 ROWS=5>
</textarea>
<TEXTAREA NAME="control" COLS=40 ROWS=5>
</textarea>
<input type="button" value="click" onclick="testform()">
The code above works OK if I use the same name for the textarea, but how can I retrieve all the values and store in a database?
<TEXTAREA NAME="control<%=cnt%>" COLS=40 ROWS=5>
</textarea>
I need to be able to update a database and check for nulls? Please help