Salve mi sono impantanato in questo dilemma.
Volevo sapere come si fa a richiamare il campo "nome , cognome e citta" in cui l'utente inserirà i dati in input type="text" per inserirlo nel database.
Ps: la tabella è un form e alla fine ce un imput di invio.
Mi spiego meglio:
Ho preso dei dati dal database e li ho listati in una tabella html così:
Codice PHP:
<?php
include "config.php";
connettiDb();
$sql="select * from maestri where sesso='uomo'";
$dati=mysql_query($sql);
while($row=mysql_fetch_array($dati)) {
echo '<td>' . $row [nome] . ' ' . $row [cognome] . '</br></td>
<td>' . $row [citta] . '
</td>
<td><input type="text" name="n_lez1" maxlength="3" size="3" />
</td>
<td>[url="modify.php?id=' . $row['id'] . '"][modifica][/url]</td>
<td>[url="delete.php?id=' . $row['id'] . '"][cancella][/url]</td>
</tr>';
}
?>
Se notate ho inserito anche:
codice:
<input type="text" name="n_lez1" maxlength="3" size="3" />
Sarà li che l'utente potrà inserire i valori.
Grazie mille.