I need to read the docs more carefull.
On 6/28/06, Malcolm Tredinnick <
[EMAIL PROTECTED]> wrote:
On Wed, 2006-06-28 at 09:21 +0800, HoLin wrote:
> hi all
> I have a Query_String like this :
> ?type_encode=0&domain=python&root=.cn&root=.com&root=.net
>
> using request.REQUEST.get("root") can only get the last value *.net*
> how can I get the right value of root?
The behaviour of this dicitionary-like object is documented in [1], but,
basically, request.REQUEST.get(...) retrieves the last of multiple
values, whilst request.REQUEST.getlist (...) retrieves all of them.
[1]
http://www.djangoproject.com/documentation/request_response/#querydict-objects
Regards,
Malcolm
--
Regards
HoLin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---