--- form.class.php.org	2007-02-20 15:20:16.000000000 +0100
+++ form.class.php	2007-02-21 16:51:03.000000000 +0100
@@ -129,7 +129,7 @@
 		  } else {
 			$str .= '@<select name="domain_'.$key.'" '.$value['attrs']." >\n";
 			foreach( $value['domains'] as $dom ) {
-			  if( $dom == $domain ) $s = 'selected';
+			  if( $dom == $domain ) $s = 'selected="selected"';
 			  else $s = '';
 			  $str .= '<option value="'.MySmarty::htmlentities($dom).'" '.$s.'>'.MySmarty::htmlentities($dom).'</option>'."\n";
 			}
@@ -198,7 +198,7 @@
 		  $str .= '<td><select name="'.$key.'" '.$value['attrs'].' >'."\n";
 
 		  for( $i = 0; $i < count($value['options']); ++$i) {
-			if( $i == $value['value'] ) $s = 'selected';
+			if( $i == $value['value'] ) $s = 'selected="selected"';
 			else $s = '';
 			$str .= '<option value="'.$i.'" '.$s.'>'.MySmarty::htmlentities($value['options'][$i]).'</option>'."\n";
 		  }
@@ -221,7 +221,7 @@
 		  $str .= '<td><select name="'.$key.'" '.$value['attrs'].' >'."\n";
 		  foreach ($entries as $id => $title) {
 		  	if ( $value['value'] == $id )
-				$s = 'selected';
+				$s = 'selected="selected"';
 			else
 				$s = '';
 
@@ -239,7 +239,7 @@
 		if( ereg( 'readonly', $value['attrs'] ) ) {
 		  if( $value['user'] ) $str .= '<td><span class="ctrl">'.MySmarty::htmlentities($value['user']).'</span> <span class="ctrl">'.$value['perm'].'</span></td>';
 		} else {
-		  $str .= '<td><input name="user_'.$key.'" type="'.$value['type'].'" size="'.($size-15).'" value="'
+		  $str .= '<td><input name="user_'.$key.'" type="text" size="'.($size-15).'" value="'
 			.MySmarty::htmlentities($value['user']).'" '.$value['attrs'].' />';
 		  $str .= '<select name="perm_'.$key.'">'."\n";
 		  if( $value['perm'] ) $selected_perm = $value['perm'];
@@ -254,7 +254,7 @@
 						  'read hidden', 
 						  'read hidden/post', 
 						  'all' ) as $perm ) {
-			if( $perm == $selected_perm ) $s = 'selected';
+			if( $perm == $selected_perm ) $s = 'selected="selected"';
 			else $s = '';
 			$str .= '<option value="'.$perm.'"'.$s.' >'.$perm.'</option>'."\n";
 		  }
@@ -301,7 +301,7 @@
 			$j = 0;
 			foreach( $policies as $p ) {
 			  if( $j == $pol ) {
-				$str .= '<option value="'.$j++.'" selected>'.$p.'</option>'."\n";			
+				$str .= '<option value="'.$j++.'" selected="selected">'.$p.'</option>'."\n";			
 			  } else {
 				$str .= '<option value="'.$j++.'">'.$p.'</option>'."\n";
 			  }
