Using the length[] and width[] will function correctly, resulting in two arrays within the $_POST variable. To display this data, you can utilize a foreach loop like so:
foreach ($_POST['length'] as $key => $val) {
echo "length: " . $_POST['length'][$key] . ", width: " . $_POST['width'][$key];
}
If you prefer to label them with numbers, you can use a variable called "room" to number each field accordingly:
divContainer.innerHTML = '<div class="label">Room ' + room +':</div><div class="content">';
divContainer.innerHTML += '<span>Width: <input type="text" style="width:48px;" name="width_' + room +'" value="" /><small>(ft)</small> X</span>';
divContainer.innerHTML += '<span>Length: <input type="text" style="width:48px;" name="length_' + room +'" value="" /><small>(ft)</small></span>'
divContainer.innerHTML += '</div>';