Non puoi avere un array che contiene le chiavi ?
$ch[0] = 'nome';
$ch[1] = 'cognome';
...
$ch[10] = 'paese';
...
for ($i=0;$i<count($ch);$i++) {?>
<input type="text" value="<?php echo isset($arr[$ch[$i]]) ? $arr[$ch[$i]]] : '' ?>" />
}
Non puoi avere un array che contiene le chiavi ?
$ch[0] = 'nome';
$ch[1] = 'cognome';
...
$ch[10] = 'paese';
...
for ($i=0;$i<count($ch);$i++) {?>
<input type="text" value="<?php echo isset($arr[$ch[$i]]) ? $arr[$ch[$i]]] : '' ?>" />
}
Ridatemi i miei 1000 posts persi !!!!
Non serve a nulla ottimizzare qualcosa che non funziona.
Cerco il manuale dell'Olivetti LOGOS 80B - www.emmella.fr