I've been able to extract values from POST and GET objects by doing
request.POST.get('value')
Did you try this?
Sandman.
On Nov 11, 9:07 pm, robinne wrote:
> Thanks. I tried a lot of different options but nothing was working.
> Finally got it working with this:
>
> req = request.POST['value']#t
Thanks. I tried a lot of different options but nothing was working.
Finally got it working with this:
req = request.POST['value']#this is how InputEx sends it, with root =
value.
parsedRequest = simplejson.loads(req)
print parsedRequest["Username"]
Basically, I got the array of 'value', then turn
Does
request.POST['value'][0]['LastName']
work?
It looks like your post data has an array (keyed as 'value') of dicts.
You might also consider using Firebug (or something similar) to inspect the
http requests and responses when you are developing.
Regards,
Tamas
On Wed, Nov 11, 2009 at 2:
I am posting data from a form to a django view. The form is created
using inputEx (a YUI-like interface). The form gets created much like
you create a YUI form and you include names for all your fields in
javascript. It is javascript that creates the form on the page.
I am able to load database d
4 matches
Mail list logo