Index: trunk/phase3/includes/Xml.php |
— | — | @@ -275,7 +275,8 @@ |
276 | 276 | * @return string HTML |
277 | 277 | */ |
278 | 278 | public static function input( $name, $size=false, $value=false, $attribs=array() ) { |
279 | | - $attributes = array(); |
| 279 | + $attributes = array( 'name' => $name ); |
| 280 | + |
280 | 281 | if( $size ) { |
281 | 282 | $attributes['size'] = $size; |
282 | 283 | } |
— | — | @@ -284,8 +285,6 @@ |
285 | 286 | $attributes['value'] = $value; |
286 | 287 | } |
287 | 288 | |
288 | | - $attributes['name'] = $name; |
289 | | - |
290 | 289 | return self::element( 'input', $attributes + $attribs ); |
291 | 290 | } |
292 | 291 | |