English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i created a form with a drop down menu , the "select" tag, in that list, i have a number of names, and the purpose of it is for the user to select the person he wants to email.

how do i get it to actually email the selected person, the cgi keeps sending the email to the one given to it and thats it,

the way i have it setup is this way




any ideas ? maybe some javascript ?

2006-10-31 08:45:49 · 4 answers · asked by maherovus 1 in Computers & Internet Programming & Design

adding mailto before the email address didnt work

2006-10-31 09:07:51 · update #1

4 answers

I have tried to figure out how to get links to work in dropdown menus several times. The best I can do is make a long table with a list of email links that is clipped off in a small window and scrolls, like this...

< div style = "width :200px;height :28px;overflow :auto">
< table>



  • < a href="mailto :person1@website.com>Person 1

  • < a href="mailto :person2@website.com>Person 2

  • < a href="mailto :person3@website.com>Person 3







Remember, a javascript solution won't work everywhere...the feature would be non-functional for a percentage of your users if you script it in with Java.
If you want to send the email text from a form, you will have to use XML (xhtml) and name every section of your form, then learn a little CGI (server side scripting). It would be much easier to use regular 'mailto:' links. They will bring up a window asking the user to login to thier email application and the address you specify will be the address for the email when they sign in.
You know that any Email links that you put on the open internet will be spammed mercilessly, right?

2006-10-31 11:10:08 · answer #1 · answered by FreddyBoy1 6 · 0 0

try sticking mailto: before the email address

2006-10-31 08:50:36 · answer #2 · answered by cool_clearwater 6 · 0 0

Instead, try this out:

2006-10-31 10:33:32 · answer #3 · answered by dman 2 · 0 0



<br /> <title>Email to Thomas Boutell


Email to Thomas Boutell




name="recipient" value="CHANGEME">
border="0" cellpadding="5" cellspacing="5">










Your Name
Your Email Address
Subject
Text:




Cancel


2006-10-31 08:49:00 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers