Advanced Search

Results 1 to 1 of 1

Thread: Sending an email with Chained Select Menu

  1. #1
    Join Date
    Nov 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sending an email with Chained Select Menu

    1) Script Title: Chained Select Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu/index.htm

    3) Describe problem: HI there I have installed the' Chained Select Menu' Script and have it working perfectly. However I am using the three chained drop downs in an email form with some other text fields. The problem is I cant retrieve the populated values selected by the user in the chained drop downs. I know the form is working because I can retrieve the values of other fields on the form. When I view the email sent all I can see is the label of the chained drop downs. I am using this script at my place of work with Classic ASP to send the form. I'm guessing that the JavaScript isn't actually on the server so cant be shown, but I'm not the greatest programmer so cant think of a solution would really appreciate some help on this one as I'm struggling to get this done. have included relevant code below.

    thanks

    Lee

    The 3 files I'm using (along with the config.js and chainedmenu.js files) are booking form.asp and booking-form-action.asp I have provided a relevant snippet from each below to help

    **** booking form.asp *****
    HTML Code:
    <head>
    <script language="javascript" src="js/chainedmenu.js"></script>
    <script language="javascript" src="js/config.js"></script>
    
    </head>
    
    <body onload="initListGroup('chainedmenu', document.contactform.coursetype, document.contactform.course, document.contactform.coursedate, 'savestate')">
    
    <%
    	If Request.Querystring("sent") = "true" Then
    %>
    
    <h2>Thank you!</h2>
    
    <%
    	Else
    %>
    
    <form  name="contactform" method="post" action="booking-form-action.asp">
    				<input type="hidden" name="formAction" value="sent" />	
        
    <label id="coursetype">Course type:</label><br />
                 <select name="coursetype" id="coursetype" class="formStyle" style="width:335px;" ></select> 
    
    <label id="course">Course:</label><br />
                  <select name="course" class="formStyle" style="width:425px;" ></select>    
    
    <label id="coursedate">Date:</label><br />
                   <select name="coursedate" class="formStyle" style="width:300px;" ></select>    
    
    ---- other non relevant fields here -----
    
    -- not using original submit 'Go' button 
    <label for="submit">&nbsp;</label>
                    <input class="submitButton" type="submit" value="submit" name="submit" />
            
    
    </form>
    
    ---End of booking form.asp
    
    *** booking-form-action.asp ****
    <%
    If Request.Form("formAction") = "sent" Then
    		
    		
    		coursetype				=	Request.Form("coursetype")
    		course				=	Request.Form("course")
    		coursedate				=	Request.Form("coursedate")
    		
    
    ---- other ASP code here
    email_body = ""
    email_body = email_body & "Course type: " & coursetype & vbcrlf
    		email_body = email_body & "Course selected: " & course & vbcrlf
    		email_body = email_body & "Course Date: " & coursedate & vbcrlf
    Last edited by traq; 11-28-2012 at 01:44 PM. Reason: please use BBCode tags. do not post the same thread twice.

Similar Threads

  1. chained select menu
    By merong in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 07-08-2009, 04:10 PM
  2. Chained Select Menu?
    By yeknoM in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-19-2008, 09:05 AM
  3. Chained Select Menu Help
    By Agent Moose in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-20-2007, 08:33 PM
  4. Help with Chained Select Menu
    By montero in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-25-2006, 11:55 PM
  5. Chained Select Menu
    By toolman in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 07-24-2005, 06:32 PM

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
  •