codice:
function check_sel($A,$B)
{
if ($A === $B )
return "selected=\"selected\"" ;
}
print "<form method=\"post\" action=\"gestisci_att_acp.php\">
<table class=\"art-table\" width=\"95%\" border=\"0\">
<tr>
<th>Attività </th>
<td>$array[attivita] </td> </tr>
.....
<tr>
<th> Stato</th>";
print "
<select name=\"stato\">
<option value=\"A\" ".check_sel('A',$array[stato])." >Attiva</option>
<option value=\"S\" ".check_sel('S',$array[stato]).">Sospesa</option>
<option value=\"C\" ".check_sel('C',$array[stato]).">Chiusa positivamente</option>
<option value=\"N\" ".check_sel('N',$array[stato]).">Non Risolta</option>
</select>
<td> <input class=\"art-button\" type=\"submit\" name=\"Submit\" value=\"Modifica\"/>
</td> </tr> </table> </form>" ;
forse... funzionerà...