Greg skrev:
> I post some info to a view.  When I do a 'assert False, request.POST'
> I see the following
>
> <MultiValueDict: {u'x': [u'74'], u'1': [u'1'], u'3': [u'2'], u'2':
> [u'2'], u'5': [u'2'], u'4': [u'3'], u'7': [u'---'], u'6': [u'2'],
> u'y': [u'4'], u'8': [u'---']}>
>
> It should only have 8 keys (1 through 8).  Instead I see the keys 'x'
> and 'y'?  It's causing a problem when I try to loop through my POST
> data.
>
> Does anybody know why this is happening?
>   
I believe your form uses '<input type="image">' for the submit button.
This will cause the x- and y-coordinates for the pixel clicked to be
sent along with the rest of the form data. See
http://www.w3.org/TR/html4/interact/forms.html#h-17.4.1
for more info.


Nis


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to