On Sunday 18 June 2006 00:37, jacob wrote: > I have an inbox template that generates a list of links to messages > with the necessary trailing slash like this: > > <a class='msglink' href='/msg/34/'>blah blah</a> > > That link takes you to the message view which has a form that looks > like this: > > <form action='.' method='post'> > <input type='submit' value='Delete'> > </form>
Short version: <input type='submit' value='Delete' name="delete"> ^^^^^^^^^^^^^ Long version: request.POST is (essentially) a dictionary of post variables. As such, if it is empty, it evaluates to False, even if the request method is 'POST'. In your form, you don't have a single 'successful' field -- the only field is an <input>, and since it doesn't have a 'name' it can't be successful. Luke -- "Agony: Not all pain is gain." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---