SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Does anyone know how to create a dropdown menu where the value you select determines who receives the contents of the form? I'd like to be able to setup a form on my site where people choose a staff member's name from the dropdown and have them receive the email...

    Thanks,



    ------------------
    Chris - TWT Commish
    http://www.warningtrack.net
    "Baseball - Baked Fresh Daily"

  2. #2
    SitePoint Zealot Isaiah's Avatar
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use the regular SELECT code, but name it "recipient" so the form gets sent to the email address chosen. Also note that the value of each option is the email address. Simple eh?

    <select name="recipient">
    <option value="yourname@123.com">Site Owner</option>
    <option Value="yourname@123.com">Webmaster</option>
    </select>

    Hope this helps!

    ------------------
    Isaiah Walter
    Founder and Owner
    ------------------
    Federation Fire - Internet Solutions
    Professional Internet design for non-professional prices™


  3. #3
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make the value of each "mailto:email@domain.tld" and get a JS or CGI/ASP script to redirect. JS would be better, in my opinon because it'd be instantaneous. http://www.javascripts.com/ (js) http://www.wsabstract.com/ (js) http://www.cgi-resources.com/ (perl) http://www.aspin.com/ (asp)

    ------------------
    Think you're running the server "is 5" and an Asp is only a snake? Get with the times!
    Active Server Pages dominate.
    Soon to come: Aspology.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •