Salve io ho una form cosi:
<select name="desc" >
<?
$sql = "SELECT * FROM descrizioni " ;
$result = mysql_query ( $sql );
while ( $row = mysql_fetch_array( $result ))
{
$var=$row['0'];
$menu=$row['1'];
############### tagliastringa##########
$taglia = substr_replace($menu,"...",90);
#############
if ($codistatattivita == $var) echo "<option value='$var' selected='selected'> $menu </option>";
else echo "<option value='$var'> $menu- $menu1 </option>";
}
?>
</select>
solo che i dati che recupera nel db per mostrarli in elenco spesso sono di molti caratteri e mi deforma tutto, io ho cercato di ovviare tagliando la stinga , ma no va bene perchè in ogni caso il riquadro della for e sempre troppo lungo , come posso fare
ho provato agiungere questi attributi size="200" maxlength="250" ma non và ... help