On 7/27/07, Greg <[EMAIL PROTECTED]> wrote:
> 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?

You're probably using an <input type="image"> - those send along x/y
coords of the image click.

As a matter of general principle, though, you shouldn't assume
*anything* about the contents of data that comes from the web browser.
The browser could be a robot posting data automatically, or you could
be dealing with a greasemonkey script that's changing your markup, or
whatever. You need to write your code to deal with extra and/or
missing fields.

Jacob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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