CGI multiple select?

Jon Ribbens jon+usenet at unequivocal.co.uk
Tue Apr 9 17:05:58 EDT 2002


In article <56ns8.37728$tg4.448055 at vixen.cso.uiuc.edu>, John wrote:
> When only one entry is selected:
> form["spred"].value (will be the object selected)
> 
> When multiple entries were selected:
> for o in form["spred"]:
>   o.value (--> each of these will be the object selected)

If you use jonpy, you would name the form field "spred*" and it would
always be passed to you as a list ;-)

(Allowing the evil hacker to dictate the type of the input data seems
like bad design to me.)

http://jonpy.sourceforge.net/



More information about the Python-list mailing list