By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,677 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

Python CGI Select Multiple Returning all items in box

P: n/a
Howdy all,

Is there an easy way to return all items of an "HTML select multiple"
even if they aren't highlighted?

form=cgi.FieldStorage()
form.getlist("box")

only returns those that are selected.

Thanks,

Mark

Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 21 Apr 2005 13:29:47 -0700, la*****@yahoo.com declaimed the following
in comp.lang.python:
Howdy all,

Is there an easy way to return all items of an "HTML select multiple"
even if they aren't highlighted?

form=cgi.FieldStorage()
form.getlist("box")

only returns those that are selected.
Pardon, but if it did that, how would you know which had been
selected?

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 19 '05 #2

P: n/a
Sorry, I should have explained better. I'm using the "listbox" as a
repository. With some Javascript, the user dumps items into it and
then hits the submit. It's similar to what you see here:
http://www.mredkj.com/tutorials/tutorial_mixed2b.html

Jul 19 '05 #3

P: n/a
la*****@yahoo.com wrote:
Sorry, I should have explained better. I'm using the "listbox" as a
repository. With some Javascript, the user dumps items into it and
then hits the submit. It's similar to what you see here:
http://www.mredkj.com/tutorials/tutorial_mixed2b.html


IIRC I have done this in the past with an onSubmit handler that went through and selected all the
items in the desired list so they would be included in the submit. It was long ago and far away
though...

Kent
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.