Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Help with my form mail please

    Hi, Can you help???

    I want to insert a dropdown menu on my contact page so that it has 3 items. I want it to work so that if the first item is selected then the data from the form is sent to email address 1. If the second item is selected on the dropdown menu then the data from the form is sent to email address 2. And if the third item is selected then the data is sent to both email addresses. Could you tell me how to do this or point me in the right direction please, many thanks in advance!

    My Script is as follows:
    Code:
    FORM method="post" action="http://www.mysite.co.uk/cgi-bin/FormMail.pl"
    <input type="hidden" name="recipient" value="info@mysite.co.uk"
    <input type="hidden" name="subject" value="Website Enquiry"
    <input type="hidden" name="redirect" <value="http://www.mysite.co.uk/thanks.html"
    <p>
    <label>Name
    
    <input name="Name" type="text" id="Name" size="40" />
    </label>
    </p>
    <p>
    <label>Email
    
    <input name="Email" type="text" id="Email" size="40" />
    </label>
    </p>
    <p>
    <label>Service
    
    <select name="Service" id="Service">
    <option>Hair & Makeup
    <option>Hair
    <option>Makeup
    </select>
    </label>
    </p>
    <p>
    <label>Message
    
    <textarea name="Message" cols="40" rows="5" id="Message">
    </label>
    </p>
    <p>
    <input type="submit" value="Submit" name="B1" />
      
     
    <input type="reset" value="Reset" name="B2" />
    </p>
    </form>
    Last edited by rossw; 06-13-2010 at 11:06 AM. Reason: Missed a bit code out

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You won't be able to do this with formmail alone. Formmail just sends what you give it to one email address. For what you are wanting you will need to write your own form processing script which is likely something you won't know how to do so I suggest you start searching for premade scripts.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    rossw (06-13-2010)

  • #3
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks Aerospace, I will get searching for one just now!

  • #4
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    832
    Thanks
    10
    Thanked 79 Times in 77 Posts
    Maybe one of these may allow you to get that done. Jotform.com might be one as it seems to be popular.

    Your current hosting package MUST allow SMTP ( http://en.wikipedia.org/wiki/Simple_...nsfer_Protocol ) to work. Otherwise, no email can be sent.

    Use any of the below sites to make the workable form you need:

    For making forms:

    These are really good online form makers. Just follow the instructions for making it and uploading file(s).

    http://www.jotform.com/?gclid=CNKhqe...FRQhnAod6laUqA (WYSIWYG Form Maker)
    http://www.thesitewizard.com/wizards/feedbackform.shtml
    Ajax - Creating an HTML Form: http://www.tizag.com/ajaxTutorial/ajaxform.php
    http://www.phpform.org/
    http://www.tele-pro.co.uk/scripts/contact_form/

    http://www.thepcmanwebsite.com/form_mail.shtml
    http://emailmeform.com/
    http://www.freecontactform.com/
    http://www.reconn.us/content/view/12/34/ (Download - Contact Us Script)
    http://formsmarts.com/

    http://apptools.com/phptools/forms/forms1.php
    Form Service: http://www.mycontactform.com/
    Online Free Tool, PHP Contact Form Code Generator: http://www.htmlbasix.com/contactform.shtml
    PHP Mailer Script Step by Step: http://www.htmlgoodies.com/beyond/ph...le.php/3855686
    PHP Sending E-mails: http://www.w3schools.com/PHP/php_mail.asp

    Freebie: Good looking Fluid Contact Form: http://www.flashuser.net/flash-compo...tact-form.html

    Put an online contact form on your site in about 8 minutes (Requires an account): http://response-o-matic.com/
    ☠ ☠RON☠ ☠


  •  

    Posting Permissions

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