For debugging, start by seeing what *is* in the POST dict that you get back
from the request. Super simple - just print it out and see what's in there.
That might give you a clue how it's interpreting it when it comes back...

-joe

On 12/15/06, MattW <[EMAIL PROTECTED]> wrote:
>
>
> Sorry, should have made it clear on my second post in response to
> Massimiliano. He suggested this, and so I altered the code so it now
> reads:
>
> def ansQuestion(request):
>     q = get_object_or_404(Question)
>     answer = request.POST["answer"]
>
> <form action="ansQuestion" method="post">
> <select name="answer">
> <option value="A">A</option>
> <etc...>
>
> Since (at least) two people have now suggested that this is the right
> thing, and it still doesn't work, then I must have done something else
> wrong....any ideas?
>
> Thanks a lot,
>
> Matt
>
>
> >
>


--~--~---------~--~----~------------~-------~--~----~
 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