i have database name "predefine_value" and in that database i stored registr_no,aircraft_type and mtow, what i want is when user input registration number into input field to use registration number field in database query and retrieve aircraft_type and mtow from the database and to automatically filled aircraft_type and mtow field in the form. i don't javascript please help
Just Side note i am network engineer by trade i took this project as volunteer since i did couple of php project back in university.i am not worry about security issue because this will be locally hosted and few computer will have access to this server.
<table>
        <form method="post" action="">
            <tr>
            <?php
                include ("connect.php");
                global $con;  
                $g = mysqli_query($con,"select max(id) from plane_info");
                while($id=mysqli_fetch_array($g))
                {
            ?>
                <th>ID:</th>
                <td><input type="text" name="txtid" value="<?php echo $id[0]+1; ?>" readonly="readonly" /></td>
            </tr>
            <?php
                }
            ?>
            <tr>
                <th>Registration No:</th>
                <td><input type="text" name="txtregistr_no" /></td>
            </tr>
            <?php
                $registr_no=txtregistr_no;
                $k = mysqli_query($con1,"select aircraft_type mtow from predefine_value where registr_no=".$registr_no);
                while($registr_no=mysqli_fetch_array($k))
                {
                }
            ?>
            <tr>
                <th>Aircraft_type:</th>
                <td><input type="text" name="aircraft_type" value="<?php echo $registr_no[1];?>"  /></td>
            </tr>
            <tr>`
                <th>MTOW:</th>
                <td><input type="text" name="mtow" value="<?php echo $registr_no[2];?>"  /></td>
            </tr>
