On 03-Aug-07, at 10:12 AM, Kenneth Gonsalves wrote:

>
>
> On 03-Aug-07, at 8:06 AM, james_027 wrote:
>
>>> create different URLs (and thus different views) for the different
>>> buttons and then redirect to wherever you want to go.
>>>
>>
>> How do I create a different URL for different buttons but under one
>> form?
>
> each submit button has a name - say 'add', 'edit', 'delete', so write
> code like:
> if 'add' in request.POST.keys():
>       do something
> if 'add' in request.POST.keys():
>       do something

oops s/add/delete/

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



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