/    Sign up×
Community /Pin to ProfileBookmark

Two Buttons on one Form – How to execute

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.

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@Gozzy82Mar 11.2010 — sure

<form>

<button value="help">help</button>

<button value="submit">submit</button>

</form>
×

Success!

Help @Chamark spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...