--- libHtmlForm-1.0.1.php.asc	Sat Apr 28 09:30:28 2001
+++ libHtmlForm-1.0.2-beta.php.asc	Mon Jun 11 09:05:52 2001
@@ -6,7 +6,7 @@
     http://www.jeremybrand.com/Jeremy/Brand/Jeremy_Brand.html
 
     libHtmlForm for PHP.
-    Release 1.0.1
+    Release 1.0.2 (beta html_select())
     http://www.nirvani.net/software/
 
     This program is free software; you can redistribute it and/or modify
@@ -25,6 +25,7 @@
 
     ChangeLog:
     1.0.1 -> Brian Wood <brian@earth.care2.com> change in html_input_text().
+    1.0.2 -> Paul Barton <paul@moonkhan.org> support for multiple selects.
     
     Prototypes:
     
@@ -139,7 +140,13 @@
         /**  make sure tmp[0] exists and is NULL, 
          **  needed for this to work corectly **/
         $tmp[''] = '';
-        $tmp[$value_selected] = ' selected';
+
+        if(is_array($value_selected) && count($value_selected))
+          while(list($key_tmp, $v) = each($value_selected))
+            $tmp[$v] = ' selected';
+        else
+          $tmp[$value_selected] = ' selected';
+
         /**  Using error_reporting() here is a 
          **  hack to make sure printing out $tmp[unset] doesn't bitch.  
          **  Doing it this way is much quicker than doing a compare each 
