Click to See Complete Forum and Search --> : Two Buttons on one Form - How to execute


Chamark
03-04-2010, 09:13 AM
Using ASP Classic VBscript Dreamweaver CS3

I have one form that has three dropdown select lists that once selected and the submit button is clicked updates an SQL DB based on the info from the selections. I would also like to provide the user with another button (help) that takes them to a help screen based on the info in one of the dropdowns.

I have tried:
<script>

function OnButton1()
{
document.button1.action = "application.asp"
document.button1.target = "_new"; // Open in a new window

return true;
}
</script>

This only works if all dropdowns are selected. I only need the 2nd dropdown selected as the info provider for the help screen Request.form("whatever")

So I need a way to have two submit buttons for one form. Can this be done, and if so how? I appreciate any help on this.

Gozzy82
03-11-2010, 10:11 AM
sure
<form>
<button value="help">help</button>
<button value="submit">submit</button>
</form>