Re: request.GET Problem

2009-02-05 Thread min
Yes, thanks! On Feb 6, 1:19 pm, Malcolm Tredinnick wrote: > On Thu, 2009-02-05 at 17:22 -0800, min wrote: > > [...] > > > > > > > If use request.GET['selectM'].strip() in the following example, we can > > only get the the 'value' of selected item. > > > > > > > > >         > >              

Re: request.GET Problem

2009-02-05 Thread Malcolm Tredinnick
On Thu, 2009-02-05 at 17:22 -0800, min wrote: [...] > If use request.GET['selectM'].strip() in the following example, we can > only get the the 'value' of selected item. > > > > > > >bbb >ccc >ddd > >

Re: request.GET Problem

2009-02-05 Thread min
Thanks a lot! Regard min On Feb 6, 12:49 pm, Alex Gaynor wrote: > On Thu, Feb 5, 2009 at 8:47 PM, min wrote: > > > Ok, Thanks! > > > Another thing is that: I can only get one value by request.GET > > ['selectM'].strip(), when I select two or more options in the > > SelectMultiple widget. > > >

Re: request.GET Problem

2009-02-05 Thread Alex Gaynor
On Thu, Feb 5, 2009 at 8:47 PM, min wrote: > > Ok, Thanks! > > Another thing is that: I can only get one value by request.GET > ['selectM'].strip(), when I select two or more options in the > SelectMultiple widget. > > For example, if I selected 'test1' and 'test2' in the SelectMultiple > widget,

Re: request.GET Problem

2009-02-05 Thread min
Ok, Thanks! Another thing is that: I can only get one value by request.GET ['selectM'].strip(), when I select two or more options in the SelectMultiple widget. For example, if I selected 'test1' and 'test2' in the SelectMultiple widget, the value in the "request.GET['selectM'].strip()" is only '

Re: request.GET Problem

2009-02-05 Thread Alex Gaynor
On Thu, Feb 5, 2009 at 8:22 PM, min wrote: > > Hi. > > In the following templates file, we can get the value of zip by using > ' request.GET['zip'].strip()' in the views.py > > > > > Zip > > > > > > However, if the 'zip' input was changed into a Selec

request.GET Problem

2009-02-05 Thread min
Hi. In the following templates file, we can get the value of zip by using ' request.GET['zip'].strip()' in the views.py Zip However, if the 'zip' input was changed into a SelectMultiple widget, like how to get both the value and option from tha