Help!!!! Need form results to go to specific e-mail addresses dependent upon clinical trial

Posted on 2006-04-19
Last Modified: 2006-11-18
I have a PHP form that submits applications for clinical trials here:  However, each trial needs to get routed to a different e-mail address depending upon the type of cancer the clinical trial is for.  What's the easiest way to accomplish this?
Question by:webfxonline
    LVL 11

    Expert Comment

    Have a database table
    id, type of cancer, email

    depending on the type_of_cancer query the database for the email.

    Author Comment

    I was afraid of that.  Can you think of any examples to get me started in creating this?
    LVL 11

    Accepted Solution

    If there are only fixed number of trials, you can even hardcode it
    like the following url needs

    to be modified to

    have a hidden input variable to grab the email address just as you do for trialname.
    I hope this helps.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now