Hi Neo thanks for your hack!
I really would like to use it, but I just found a bug. You missed that also other *.php files are using the makechoosercode. For example the user.php does not make anymore a correct combobox! I don't know how many other files are using this function...
With the change of the interface of makecoosercode we have to replace any call to this function :-(
wouldn't it be better to add the new parameters to the end of the function so that other function calls are not disturbed?
change this code:
PHP Code:
function makechoosercode ($title,$name,$tablename,$tablename2,$selvalue=-1,$extra="",$size=0,$where=0)
to this
PHP Code:
function makechoosercode ($title,$name,$tablename,$selvalue=-1,$extra="",$size=0,$tablename2,$where=0)
so any call to the makechoosercode with the old parameter list:
PHP Code:
function makechoosercode ($title,$name,$tablename,$selvalue=-1,$extra="",$size=0)
would then still work
thanks for comments or an update ;-)