Something like this... <script> function submitFunctionA() { document.getElementById('myform').action = "someurl"; document.getElementById('myform').submit() }
function submitFunctionB() { document.getElementById('myform').action = "someotherurl"; document.getElementById('myform').submit() } </script> <form id="myform"> . . some form fields . . <a href="javascript:submitFunctionA()">First Save Button</a> . . some other stuff... <a href="javascript:submitFunctionB()">Second Save Button</a> </form> On Aug 2, 10:36 pm, james_027 <[EMAIL PROTECTED]> wrote: > hi > > > 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? > > Thanks > james --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---