Im currently working on a HTML page to add additional input boxes.
I have the following code. Does anyone know how I would go about adding the required vlaues to each of the input boxes, for use later on within php ??
<html>
<head>
<title></title>
<script language="javascript">
fields = 0;
function addInput() {
if (fields != 5) {
document.getElementById('text').innerHTML += "<label for='remotelannet'>Local LAN</label><input type='text' value='' /><label
for='remotelansub'>Mask</label><input type='text' value='' /><br />";
fields += 1;
} else {
document.getElementById('text').innerHTML += "<br />Only 5 upload fields allowed.";
document.form.add.disabled=true;
}
}
</script>
</head>
<body>
<form name="form">
<label for="remotelannet">Local LAN</label>
<input type="text" name="remotelannet" />
<label for="remotelansub">Mask</label>
<input type="text" name="remotelansub" />
<input type="button" onclick="addInput()" name="add" value="+" />
</form>
<div id="text">
</div>
</body>
</html>
Thanks,