Jump to content

Creating Form With Multiple Drop Downs And Emails


sparkymom7

Recommended Posts

Hello,

I am trying to put together code in DreamWeaver that will allow me to have an 12 individual emails added to 2 drop down lists within a form. There are 12 organizations with 12 separate org. managers and I don’t want them to receive unnecessary emails that don’t affect their business. I have looked high and low for help but can't seem to get this to work. I can get one drop down with an email using the attached code but the second one won’t work for some reason. I know I’m missing something simple.

 

Intent for the form is when sales Rep fills out form fields with equipment to transfer from one place to another. He then selects a Requesting Org and a Shipping Org, which email will go to specific Org Mgr.

* Once Submit button is selected 4 additional people will also receive the request (this will be accomplished using a distribution list) * I have this working on another form, it is the emailing of 2 separate drop down list that has me stumped.

 

Thanks,

Sparkymom7

 

This code works:

 

<!doctype html>

<html>

<head>

<meta charset="UTF-8">

<title>emailformtest</title>

</head>

 

<body>

 

<form NAME="transferForm">

<p>

Requesting Branch:

<select SIZE="1" NAME="transfer">

<option>Select One:</option>

<option value="mgr1@mail.com">Org 1</option>

<option value="mgr2@mail.com">Org2</option>

<option value="mgr3@mail.com">Org3</option>

 

</select>

</p>

<p>

 

<input LANGUAGE="JavaScript" TYPE="button" VALUE="Submit"

ONCLICK="location.href = "mailto:" +

document.transferForm.transfer.options[document.transferForm.transfer.selectedIndex].value"

NAME="Send email">

</p>

</form>

 

</body>

</html>

 

This code doesn't work and believe me I have tried many different ways to get this to work - I have simplified code here for the sake of confusion.

 

<!doctype html>

<html>

<head>

<meta charset="UTF-8">

<title>emailformtest</title>

</head>

 

<body>

 

<form NAME="transferForm">

<p>

Requesting Branch:

<select SIZE="1" NAME="transfer">

<option>Select One:</option>

<option value="mgr1@mail.com">Org 1</option>

<option value="mgr2@mail.com">Org2</option>

<option value="mgr3@mail.com">Org3</option>

 

</select>

</p>

 

<p>

Shipping Branch:

<select SIZE="1" NAME="transfer2">

<option>Select One:</option>

<option value="mgr1@mail.com">Org 1</option>

<option value="mgr2@mail.com">Org2</option>

<option value="mgr3@mail.com">Org3</option>

 

</select>

</p>

<p>

 

<input LANGUAGE="JavaScript" TYPE="button" VALUE="Submit"

ONCLICK="location.href = "mailto:" +

document.transferForm.transfer.options[document.transferForm.transfer.selectedIndex].value"

NAME="Send email">

</p>

</form>

</body>

</html>

Link to comment
Share on other sites

You don't have a form action="" This action should be linked to a file that is going to process the form. If you don't have that then you lots more work to do.

 

You need to find you a good form mailer to handle/process the form that will send 1 or more emails. Right now I cannot think of any mailers that will do that but that doesn't mean it can't be done. You could take an existing one and modify it to work.

Edited by Eddie
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...