HTML Basics • All selected rows not submitted on form submit

  HTML Basics

I have an HTML table located within a form. The first column of the table is a checkbox. When the form is submitted, it opens a popup window and calls another php file to process the selected items in the table. However, it never sends more than 1000 items from the table and I don’t know why. The initial code used a GET for the form submission, which I changed to a POST, but that did not help.Here is the form definitionCODE: <form id=”scanform” method=”POST” action=”launchscan.php” target=”scan_window”>Here if the selection box that the user chooses to kick off the process that is failing to receive all the recordsCODE: <span style=”float:right;”> Select Scan on Selected Hosts: <select name=”scan_type”> <option value=”ttlsearch”>Title Search</option> <option value=”ipscan”>IP Scan</option> </select> <input type=”button” value=”Scan”> </span>Here is the table definition from which rows are selectedCODE: <table id=”home” width=”100%” cellspacing=”0″ align=”center” class=”display”> <thead> <tr> <th><input type=”checkbox” /></th> <th>IP</th> <th>DNS</th> <th>Port</th> </tr> </thead> <tbody> <tr class=”item”> <td><input type=”checkbox” name=”selected[]” value=””/></td> <td></td><td></td><td>443</td></tr> …repeat…</tbody></table></form> Here is the JavaScript for the button callCODE: function launchscan() {”, ‘scan_window’,”height=400,width=600″); var all = document.body.getElementsByTagName(“*”); document.getElementById(‘scanform’).submit();}Here is the snippet of code from launchscan.php. This code processes the selected rows in the HTML table. If I select over 1000 rows it never sends more than 1000. I cannot determine why.CODE: if(isset($_REQUEST[‘selected’])){ foreach($_POST[‘selected’] as $selected){ $split = explode(‘:’, $selected); $line = $split[1] . “,” . $split[2] . “,” . $split[0] . “n”; fwrite($Handle,$line); } fclose($Handle); echo “Input File $filename written.<br>”;}else{ echo “not selectedn”;}If anybody can give me some insight into this I would be appreciative. I am just getting back into php and this is a bit confounding.TIAStatistics: Posted by mperemsky — Wed Sep 15, 2021 5:46 am