Bobby Roberts escribió: > hi group. > > I've run across a situation where I don't really need a django form to > capture the data. In fact i'm not sure how it would work anyway. > Basically, I have a tabled set of data with a checkbox on each row and > I want to be able to select them and submit that to a django view. > The form looks something like this: > > > <form action="." method="POST"> > <input type="checkbox" name="rowid" value="1"> > <input type="checkboc" name="rowid" value="2"> > <input type="checkbox" name="rowid" value="3"> > <input type="submit" name="submit" value="process list"> > </form> > > Is it possible to take a standard html form as such and then process > it with a django view? I'm reading the form docs and don't see > anything like that. >
You can get the values using request.POST.get('fieldname'), in the case of the checkbox use request.POST.getlist('rowid') Regards. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---