I need to load all the content defined in the database query every while and fill in the fields and give the submit, it will write to the bank and reload only that loop bringing me the filled bank data again. So when you are posting information and recording in the database, it updates me which are filled and in the future when I load the page another day I will know which ones are filled too.
Code sample:
while (odbc_fetch_row($result)) {
$sqlConfirma = "SELECT inf_km, km FROM dba.km
WHERE dba.km.id= ".$id."";
echo "<tr>";
echo "<form name='InsertBanco' action='executar.php' target='_blank' method='post'>
<td><input type='text' name='km_op' value='".odbc_result($sqlConfirma, "inf_km")."'></td>
<td><input type='text' name='km' value='".odbc_result($sqlConfirma, "km")."'></td>
<td><input type='submit' name='InsertBanco' value='Inserir'></td>
</form>
}
echo "</tr>"
This is just an example of the code, not it itself, since I use many other fields. The solution could be Javascript and Jquery as well.