Codice PHP:
<form action="<? echo "script/update_ok.php?update=ok&tipo=".@$tipo."&id=".@$codice ?>" method="POST">
<table class="form" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="31%">
<label for="nome2"></label>
DATI COMUNI</p></td>
<td width="33%">CLIENTE PRIVATO</td>
<td width="36%">CLIENTE AZIENDALE</td>
</tr>
<tr>
<td>Email
<label for="email">
<input type="text" name="email" id="email" value="<? echo @$email ?>" />
</label></td>
<td>Cognome
<input type="text" name="cognome" id="cognome" value="<? echo @$cognome ?>" /></td>
<td>Nome Azienda
<input type="text" name="nomeazienda" id="nomeazienda" value="<? echo @$nome_az1 ?>" /></td>
</tr>
<tr>
<td>Indirizzo
<label for="indirizzo2">
<input type="text" name="indirizzo" id="indirizzo2" value="<? echo @$indirizzo ?>" />
</label></td>
<td>Nome
<input type="text" name="nome" id="nome" value="<? echo @$nome1 ?>" /></td>
<td>Iban (solo aziende)
<input type="text" name="iban" id="iban" value="<? echo @$iban ?>" /></td>
</tr>
<tr>
<td>Città
<label for="citta2">
<input type="text" name="citta" id="citta2" value="<? echo @$citta ?>" />
</label></td>
<td>C.F.
<label for="codfiscale">
<input type="text" name="codfiscale" id="codfiscale" value="<? echo @$codicef ?>" />
</label></td>
<td>P.IVA (solo aziende)
<input type="text" name="part_iva" id="part_iva" value="<? echo @$p_iva ?>" /></td>
</tr>
<tr>
<td></td>
<td>Data Nas.
<input type="text" name="data" id="data" value="<? echo @$datan ?>" /></td>
<td></td>
</tr>
<tr>
<td height="24">User
<input type="text" name="user" id="user2" value="<? echo @$user ?>" /></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="24">Passw.
<input type="text" name="password" id="password" value="<? echo @$password ?>"/></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="3"><input type="submit" name="button" id="button" value="Modifica Cliente" /></td>
</tr>
</table>
</form>
Sennò le setti ognuna prima del while all'inizio della pagina