Form with two "actions"?!?

I have a form where I want to be able to do 2 different things depending on which button I press?

My form tag looks like this:

<form id="mbpForm" method="post" action="admin.php?page=sitepages&ez=do_createpage" onsubmit="changeValues();">

At the bottom of my form I want 2 buttons. One ordinary submit button which do the action and then a button which changes the values using the changeValues() part…

How do I do this?

Thanks in advance :wink:

You can use an ordinary submit button to submit the form to the action’s url and just a plain button with onclick event handler to call changeValues().