I have a PHP file that has a form that is supposed to be sending 1060 entries (from 1060 textboxes) to a PHP file
which will then add them in a database. But from the 711th textbox to the 1060th,
it doesn't retrieve anything and sends me the Undefined index SQL error.
The 1060 textboxes basically has the same codes except for some numbers are changed. Is there a limit on the number of textboxes that can be retrieved? If there is a limit, is there a way to increase it? (I am using WAMP/I am not using the GETmethod, only POST)
Part of the 1060 textboxes code This code is repeated 1,060 times on the same page only changing the number (db1, db2, etc.) It is also inside a form(<form></form>), has a SUBMITbutton and is basically complete.:
<?php
    $username=$_SESSION['username'];            
    echo "  <script type=text/javascript>
    var hidden = false;
    function actiondb143() {    
        if(!hidden) {   
            document.getElementById('clickdb143').style.visibility = 'visible'; 
            document.getElementById('db143').style.visibility = 'visible';  
            document.getElementById('db143').value = value='".$username."';         
        }                                   
    }                                       
    </script>   
    ";
    echo "</head>";
    echo "<body>";
    $country="Philippines";
    $curdate=$_SESSION["curdate"];
    $checker=mysqli_fetch_array(mysqli_query($con, "SELECT colDoneBy FROM tblChecklist WHERE colEntryID='143' AND colDate='$curdate' AND colCountry='$country'"));
    if($checker[0] != NULL){
        $result=mysqli_query($con,"SELECT * from tblChecklist WHERE colEntryID='143' AND colDate='$curdate'");
        while($row=mysqli_fetch_array($result))
        {
            echo "<center><table border=0 width=100><font face=arial>";             
            echo "<td width=100 bgcolor=#844BA13>";
            echo "<input type=text name=db143 value=".$row["colDoneBy"]." size=12 readonly>";
            echo "</td>";
            echo "</font></table></center>";                        
        }       
    }
    else {
        echo "<table border=0 width=100><font face=arial>";
        echo "<td width=100 bgcolor=#C44448>";
        echo "<div class=buttonasglobal><input type=button value='   VERIFY   'name=clickdb143 onClick='actiondb143()'; style=\"left:100;\"></div>";
        echo "<div class=textasglobal><input type=text name=db143 style=\"visibility:hidden; width:80px;\" readonly>";
        echo "</td>";
        echo "</font></table>";
    }
?>
Parts the PHP code that adds the data in the database(Again, repeats 1,060 times, only changing by number):
<html>
 <head>
    <title>Jobsheets+</title>
        <script type=text/javascript>
        function getDate(){
            document.getElementById('curdate').value =new Date().toLocaleDateString();
        }
    </script>
    </head>
    <body onLoad = 'getDate();' background="bgimage.jpg">
        <?php
            session_start();            
            $con=mysqli_connect("localhost","root","","dbjobsheets");
            if (mysqli_connect_errno($con))
            {
                echo "Failed to connect to MySQL " . mysqli_connect_error();
            }           
            $curdate=$_SESSION["curdate"];      
            mysqli_query($con,"UPDATE tblChecklist SET colActualStart='$_POST[as143]', colActualEnd='$_POST[ad143]', colRemarks='$_POST[jr143]', colDoneBy='$_POST[db143]', colCheckedBy='$_POST[cb143]' WHERE colEntryID='143' AND colDate='$curdate'");
            mysqli_close($con);
        ?>
    </body>
</html>
 
    