sparkymom7 Posted June 12, 2013 Report Share Posted June 12, 2013 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> Quote Link to comment Share on other sites More sharing options...
newseed Posted June 12, 2013 Report Share Posted June 12, 2013 (edited) 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 June 12, 2013 by Eddie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.