I want to send some specific data in a table into a specific IP . the other IP is a microcontroller and I need to change every data that has been changed . but the apply/reboot button just send the whole variables . I want to change the button change/reboot tags so that it sends every data in its block instead of the whole data.
<script>
function validateForm()
{
var x=document.forms[myForm][fname].value;
if (x==null || x==)
{
alert(First name must be filled out);
return false;
}
}
</script>
</head>
<body>
<form name=myForm onsubmit=return validateForm() method=post>
<table> <tr>
<td>Device Info :</td>
<td><input type=text name=dev-info id=1 size="3" value=></td>
<td>.<input type=text name=dev-info id=11 size="3" value=></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td> <input type=submit value=Apply/change></td>
</tr>
<tr>
<td>MAC Adress :</td>
<td><input type=text name=mac-addr id=2 size="3"></td>
<td>.<input type=text name=mac-addr id=21 size="3"></td>
<td>.<input type=text name=mac-addr id=22 size="3"></td>
<td>.<input type=text name=mac-addr id=23 size="3"></td>
<td>.<input type=text name=mac-addr id=23 size="3"></td>
<td>.<input type=text name=mac-addr id=23 size="3"></td>
<td> <input type=submit value=Apply/change></td>
</tr>
<tr>
<td>IP Adress :</td>
<td><input type=text name=ip-addr id=3 size="3"></td>
<td>.<input type=text name=ip-addr id=31 size="3"></td>
<td>.<input type=text name=ip-addr id=32 size="3"></td>
<td>.<input type=text name=ip-addr id=33 size="3"></td>
<td></td>\r\n <td></td>
<td> <input type=submit value=Apply/change></td>
</tr>
<tr>
<td>Gateway Adress :</td>
<td><input type=text name=gate-addr id=4 size="3"></td>
<td>.<input type=text name=gate-addr id=41 size="3"></td>
<td>.<input type=text name=gate-addr id=42 size="3"></td>
<td>.<input type=text name=gate-addr id=43 size="3"></td>
<td></td>
<td></td>
<td> <input type=submit value=Apply/change></td>
</tr>
<tr>
<td>Subnet Mask :</td>
<td><input type=text name=sub-msk id=5 size="3"></td>
<td>.<input type=text name=sub-msk id=51 size="3"></td>
<td>.<input type=text name=sub-msk id=52 size="3"></td>
<td>.<input type=text name=sub-msk id=53 size="3"></td>
<td></td>
<td></td>
<td> <input type=submit value=Apply/change></td>
</tr>
<tr>
<td>Ntp Server IP :</td>
<td><input type=text name=ntp-ip id=6 size="3"></td>
<td>.<input type=text name=ntp-ip id=61 size="3"></td>
<td>.<input type=text name=ntp-ip id=62 size="3"></td>
<td>.<input type=text name=ntp-ip id=63 size="3"></td>
<td></td>
<td></td>
<td> <input type=submit value=Apply/change></td>
</tr>
</table>
<input type=submit action=http://192.168.1.250 value=Apply/Reboot>
</form>
</body>