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 14 of 14

Thread: Drop down menus

  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Drop down menus

    Hi

    I'm having a problem with a form I'm making.

    It is a series of 3 drop down menus, you select a value in the first, it then shows you the related ones in the second and the same for the third.

    What I need to do is add a box underneath these menus which has either the word 'yes' or 'no' in it. For 'gite one' and 'gite two' I need a 'yes' to be displayed for all the values and for 'gite three' I need a 'no' for all the values. How can I do this?

    the file can be found here - http://www.groovygraphics.co.uk/availability.html

    I also have a problem with the server tags. Where they are at the moment allows the drop down menus to work but the form will not send to my email. But when I remove the tags the form sends fine but the drop down menus don't work. Does anyone know how I can get around this?

    I only have 2 days to get this sorted so please help me.

    Thanks for any help
    Last edited by Pezza2u; 04-26-2004 at 10:56 AM.

  • #2
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can someone please help me on this as I'm still stuck!

    thanks

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Something like this:
    Code:
    <script>
     function fillAvailability(selectedIndex) {
      var available = document.getElementById("available2");
     
      if(selectedIndex >= 3) {
       available.value = "no";
      }
      else {
       available.value = "yes";
      }
     }
    </script>
    
    <select name="example" size="1" onChange="redirect(this.options.selectedIndex); fillAvailability(this.options.selectedIndex)">
    I'm not sure I understand what you mean by "server tags". What are those?

    Hope that helps,
    Sadiq.

  • #4
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    Thanks for the above code. I'm not sure where I need to put it though as when I insert it where the available box is it prevents the 3 drop down boxes from working.

    The server tags are <server> </server>.....where the code goes to tell the form where to go....think I'm right! Some weird reason when they're removed the form sends but the menus don't work and vise versa!

    Cheers

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,968
    Thanks
    0
    Thanked 236 Times in 233 Posts
    The <server></server> tags are not necessary. There is no such a thing as that in the first place. Move the cgi form inside the <body> tag. Forms should not be in the <head> tag.

    The triple combo script has javascript error, "Object doesn't support that method ...". I analyzed it and found out that the redirect method that the Gite Number combobox is calling onchange has the same name as the hidden field name in the cgi form. IE confuses your call to redirect as your reference to that hidden field, thus the "Object doesn't support that method" error. The fix for that is by renaming the redirect function.

    Remove the onchange handler in the Week Number combobox (3rd combo). You don't need it.

  • #6
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by glenngv
    The <server></server> tags are not necessary. There is no such a thing as that in the first place. Move the cgi form inside the <body> tag. Forms should not be in the <head> tag.
    Part of this code was written by dreamweaver and this is when those tags were entered, so I assumed they were needed.

    Quote Originally Posted by glenngv

    The triple combo script has javascript error, "Object doesn't support that method ...". I analyzed it and found out that the redirect method that the Gite Number combobox is calling onchange has the same name as the hidden field name in the cgi form. IE confuses your call to redirect as your reference to that hidden field, thus the "Object doesn't support that method" error. The fix for that is by renaming the redirect function.

    Remove the onchange handler in the Week Number combobox (3rd combo). You don't need it.
    I'm not sure which part I'm suppose to change, is it the part I've highlighted? I tried renaming that but it didn't work.

    Code:
            <tr>
          <td width="35%">Gite Number </td>
          <td width="65%"><select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
              <option selected>---Select1-------------</option>
              <option>Gite One</option>
              <option>Gite Two</option>
              <option>Gite Three</option>
            </select></td>
        </tr>
    Also I've been testing this in mozilla and it works fine, I had forgotten to test it in IE....hence I didn't even know this didn't work.

    Can you help me on the available box as well as I can't figure that out?

    Thanks

  • #7
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,968
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Only IE will get confused on that because IE automatically makes ids and names of elements as global variables.

    See how this goes.
    Attached Files Attached Files

  • #8
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That worked a treat mate but now the form won't send.

    I tried moving the code back to the head and that didn't solve it....so I can't think why that won't work now!

    It seems that when I move the code to certain areas and it prevents the menus from working the form sends. When the menus work the form won't send! Is it possible that the menus and cgi code are conflicting?

    Any ideas?

    Cheers
    Last edited by Pezza2u; 04-27-2004 at 01:06 PM.

  • #9
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why do I get the idea that you have no idea as to what's going on?

    My advice: read some online tutorials with regards to HTML, forms, Javascript and CGi. See how the stuff works and why it works, and then try to solve your own problem. You're just taking stabs in the dark with your fingers crossed.

    Believe me, it may take a little more of your time right now, but it'll save you PLENTY of time in the future.

    As to why your form isn't submitting, well that's becuase you have two forms. The first form, called "booking" has a submit button, but no action or method (hence it doesn't know where to send..). Your second form has an action and method, but doesn't have a submit button!

    I'm not sure why you need two forms, but that's where your problem lies. I would suggest combining the two forms if you don't really need two different forms -- you can only submit one of them.

    Good luck,
    Sadiq.

  • #10
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sad69
    Why do I get the idea that you have no idea as to what's going on?

    My advice: read some online tutorials with regards to HTML, forms, Javascript and CGi. See how the stuff works and why it works, and then try to solve your own problem. You're just taking stabs in the dark with your fingers crossed.

    Believe me, it may take a little more of your time right now, but it'll save you PLENTY of time in the future.

    As to why your form isn't submitting, well that's becuase you have two forms. The first form, called "booking" has a submit button, but no action or method (hence it doesn't know where to send..). Your second form has an action and method, but doesn't have a submit button!

    I'm not sure why you need two forms, but that's where your problem lies. I would suggest combining the two forms if you don't really need two different forms -- you can only submit one of them.

    Good luck,
    Sadiq.

    Yeah I am a novice when it comes to hand coding html but I've done plenty of forms before so that's why I couldn't work out what was wrong! And as for having two forms I didn't even realise that!

    I've made them one form now and moved the cgi script and it all works perfectly on IE and mozilla....so I'm happy with that now!

    Is here if you wanna look - http://www.groovygraphics.co.uk/availability.html

    I still need to get the 'yes' and 'no' values working, so can you just tell me where abouts that code you gave me needs to go please? I gotta have this finished for tomorrow night.

    Then I think I will practise by myself abit in the summer, but hey if you don't ask when you get stuck you won't get anywhere!

    Thanks for everyones help
    Last edited by Pezza2u; 04-28-2004 at 03:32 AM.

  • #11
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Urgent please help

    I've got the form working now for the 'yes' and 'no' values but I have a small problem which I'm hoping someone can tell me what I need to change. I have 2-3 hours to finish this so please can someone help me.

    Code:
    <html>
    
    <head>
       
        <title>Availability</title>
    
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function MM_validateForm() { //v4.0
      var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
      for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
        if (val) { nm=val.name; if ((val=val.value)!="") {
          if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
            if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
          } else if (test!='R') { num = parseFloat(val);
            if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
            if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
              min=test.substring(8,p); max=test.substring(p+1);
              if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
        } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
      } if (errors) alert('The following error(s) occurred:\n'+errors);
      document.MM_returnValue = (errors == '');
    }
    
      function getValue(obj) { 
        document.forms[0].available.value = obj.options[obj.selectedIndex].value; 
      } 
    
    //-->
    </script>
    </head>
    
    <body>
    
    <p> <strong><font face="Georgia, Times New Roman, Times, serif">Booking and Availability 
      Form </font></strong></p>
    <p><font size="2" face="Georgia, Times New Roman, Times, serif">If your required 
      week is available then please complete the rest of the form</font></p>
    
    <FORM name="booking" form action="http://cgi.uk2.net/cgi-bin/uk2-formmail.pl" method="POST">
    <input type="hidden" name="recipient" value="info@groovygraphics.co.uk">
    <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT">
    <input type=hidden name="subject" value="Booking Form">
    <input type=hidden name="redirect" value="http://www.groovygraphics.co.uk/thankyou.html">
    
      <table width="61%" border="0" cellpadding="2" cellspacing="3">
        <tr>
          <td width="35%">Gite Number </td>
          <td width="65%"><select name="gite" size="1" onChange="redirect0(this.options.selectedIndex)">
              <option selected>---Select1-------------</option>
              <option>Gite One</option>
              <option>Gite Two</option>
              <option>Gite Three</option>
            </select></td>
        </tr>
        <tr>
          <td>Month Required </td>
          <td><select name="month" size="1" onChange="redirect1(this.options.selectedIndex)">
              <option value=" " selected> </option>
              <option value=" " selected>---Select2--------------</option>
              <option value=" " selected>---Select2--------------</option>
            </select></td>
        </tr>
        <tr>
          <td>Week Number Required </td>
          <td><select name="week" onChange="getValue(this)" size="1">
              <option value=" " selected> </option>
              <option value=" " selected>---Select3----------------</option>
              <option value=" " selected>---Select3----------------</option>
            </select></td>
        </tr>
        <tr>
          <td>Available </td>
          <td><input type="text" name="available" size="15"></td>
        </tr>
        <tr>
          <td>First Name</td>
          <td><input name="first name" type="text" id="first name2" width ="220"></td>
        </tr>
        <tr>
          <td>Surname </td>
          <td><input name="surname" type="text" id="surname2" width ="220"></td>
        </tr>
        <tr>
          <td>Email Address </td>
          <td><input name="email" type="text" id="email2" width ="220"></td>
        </tr>
      </table>
      <p>
        <input name="Submit" type="submit" onClick="MM_validateForm('first name2','','R','surname2','','R','email2','','RisEmail');return document.MM_returnValue" value="Submit">
        <input name="Reset" type="reset" id="Reset2" value="Reset">
    </form>
        <script language="JavaScript">
    <!--
    
    var groups=document.booking.gite.options.length
    var group=new Array(groups)
    for (i=0; i<groups; i++)
    group[i]=new Array()
    
    group[0][0]=new Option("---Select2---"," ");
    
    group[1][0]=new Option("Now Select This One"," ");
    group[1][1]=new Option("January","January");
    group[1][2]=new Option("Febuary","Febuary");
    group[1][3]=new Option("March","March");
    group[1][4]=new Option("April","April");
    group[1][5]=new Option("May","May");
    group[1][6]=new Option("June","June");
    group[1][7]=new Option("July","July");
    group[1][8]=new Option("August","August");
    group[1][9]=new Option("September","September");
    group[1][10]=new Option("October","October");
    group[1][11]=new Option("November","November");
    group[1][12]=new Option("December","December");
    
    group[2][0]=new Option("Now Select This One"," ");
    group[2][1]=new Option("May","May");
    group[2][2]=new Option("June","June"); 
    group[2][3]=new Option("July","July"); 
    group[2][4]=new Option("August","August"); 
    group[2][5]=new Option("September","September"); 
    
    group[3][0]=new Option("Now Select This One"," ");
    group[3][1]=new Option("May","May");
    group[3][2]=new Option("June","June"); 
    group[3][3]=new Option("July","July"); 
    group[3][4]=new Option("August","August"); 
    group[3][5]=new Option("September","September"); 
    
    var temp=document.booking.month
    
    
    function redirect0(x){
    for (m=temp.options.length-1;m>0;m--)
    temp.options[m]=null
    for (i=0;i<group[x].length;i++){
    temp.options[i]=new Option(group[x][i].text,group[x][i].value)
    }
    temp.options[0].selected=true
    redirect1(0)
    }
    
    
    
    var secondGroups=document.booking.month.options.length
    var secondGroup=new Array(groups)
    for (i=0; i<groups; i++)  {
    secondGroup[i]=new Array(group[i].length)
    for (j=0; j<group[i].length; j++)  {
    secondGroup[i][j]=new Array()  }}
    
    secondGroup[0][0][0]=new Option("---Select 3---"," ");
    secondGroup[1][0][0]=new Option("---Select 3---"," ");
    secondGroup[1][1][0]=new Option("Now Select This One"," ");
    secondGroup[1][1][1]=new Option("Week One","Yes");
    secondGroup[1][1][2]=new Option("Week Two","Yes");
    secondGroup[1][1][3]=new Option("Week Three","Yes");
    secondGroup[1][1][4]=new Option("Week Four","Yes");
    
    secondGroup[1][2][0]=new Option("Now Select This One"," ");
    secondGroup[1][2][1]=new Option("Week One","Yes");
    secondGroup[1][2][2]=new Option("Week Two","Yes");
    secondGroup[1][2][3]=new Option("Week Three","Yes");
    secondGroup[1][2][4]=new Option("Week Four","Yes");
    
    secondGroup[1][3][0]=new Option("Now Select This One"," ");
    secondGroup[1][3][1]=new Option("Week One","Yes");
    secondGroup[1][3][2]=new Option("Week Two","Yes");
    secondGroup[1][3][3]=new Option("Week Three","Yes");
    secondGroup[1][3][4]=new Option("Week Four","Yes");
    secondGroup[1][3][5]=new Option("Week Five","Yes");
    
    secondGroup[1][4][0]=new Option("Now Select This One"," ");
    secondGroup[1][4][1]=new Option("Week One","Yes");
    secondGroup[1][4][2]=new Option("Week Two","Yes");
    secondGroup[1][4][3]=new Option("Week Three","Yes");
    secondGroup[1][4][4]=new Option("Week Four","Yes");
    
    secondGroup[1][5][0]=new Option("Now Select This One"," ");
    secondGroup[1][5][1]=new Option("Week One","Yes");
    secondGroup[1][5][2]=new Option("Week Two","Yes");
    secondGroup[1][5][3]=new Option("Week Three","Yes");
    secondGroup[1][5][4]=new Option("Week Four","Yes");
    secondGroup[1][5][5]=new Option("Week Five","Yes");
    
    secondGroup[1][6][0]=new Option("Now Select This One"," ");
    secondGroup[1][6][1]=new Option("Week One","Yes");
    secondGroup[1][6][2]=new Option("Week Two","Yes");
    secondGroup[1][6][3]=new Option("Week Three","Yes");
    secondGroup[1][6][4]=new Option("Week Four","Yes");
    
    secondGroup[1][7][0]=new Option("Now Select This One"," ");
    secondGroup[1][7][1]=new Option("Week One","Yes");
    secondGroup[1][7][2]=new Option("Week Two","Yes");
    secondGroup[1][7][3]=new Option("Week Three","Yes");
    secondGroup[1][7][4]=new Option("Week Four","Yes");
    secondGroup[1][7][5]=new Option("Week Five","Yes");
    
    secondGroup[1][8][0]=new Option("Now Select This One"," ");
    secondGroup[1][8][1]=new Option("Week One","Yes");
    secondGroup[1][8][2]=new Option("Week Two","Yes");
    secondGroup[1][8][3]=new Option("Week Three","Yes");
    secondGroup[1][8][4]=new Option("Week Four","Yes");
    
    secondGroup[1][9][0]=new Option("Now Select This One"," ");
    secondGroup[1][9][1]=new Option("Week One","Yes");
    secondGroup[1][9][2]=new Option("Week Two","Yes");
    secondGroup[1][9][3]=new Option("Week Three","Yes");
    secondGroup[1][9][4]=new Option("Week Four","Yes");
    
    secondGroup[1][10][0]=new Option("Now Select This One"," ");
    secondGroup[1][10][1]=new Option("Week One","Yes");
    secondGroup[1][10][2]=new Option("Week Two","Yes");
    secondGroup[1][10][3]=new Option("Week Three","Yes");
    secondGroup[1][10][4]=new Option("Week Four","Yes");
    secondGroup[1][10][5]=new Option("Week Five","Yes");
    
    secondGroup[1][11][0]=new Option("Now Select This One"," ");
    secondGroup[1][11][1]=new Option("Week One","Yes");
    secondGroup[1][11][2]=new Option("Week Two","Yes");
    secondGroup[1][11][3]=new Option("Week Three","Yes");
    secondGroup[1][11][4]=new Option("Week Four","Yes");
    
    secondGroup[1][12][0]=new Option("Now Select This One"," ");
    secondGroup[1][12][1]=new Option("Week One","Yes");
    secondGroup[1][12][2]=new Option("Week Two","Yes");
    secondGroup[1][12][3]=new Option("Week Three","Yes");
    secondGroup[1][12][4]=new Option("Week Four","Yes");
    
    secondGroup[2][1][0]=new Option("---Select 3---"," ");
    secondGroup[2][1][0]=new Option("Now Select This One"," ");
    secondGroup[2][1][1]=new Option("Week One","Yes");
    secondGroup[2][1][2]=new Option("Week Two","Yes");
    secondGroup[2][1][3]=new Option("Week Three","Yes");
    secondGroup[2][1][4]=new Option("Week Four","Yes");
    secondGroup[2][1][5]=new Option("Week Five","Yes");
    
    secondGroup[2][2][0]=new Option("Now Select This One"," ");
    secondGroup[2][2][1]=new Option("Week One","Yes");
    secondGroup[2][2][2]=new Option("Week Two","Yes");
    secondGroup[2][2][3]=new Option("Week Three","Yes");
    secondGroup[2][2][4]=new Option("Week Four","Yes");
    
    secondGroup[2][3][0]=new Option("Now Select This One"," ");
    secondGroup[2][3][1]=new Option("Week One","Yes");
    secondGroup[2][3][2]=new Option("Week Two","Yes");
    secondGroup[2][3][3]=new Option("Week Three","Yes");
    secondGroup[2][3][4]=new Option("Week Four","Yes");
    secondGroup[2][3][5]=new Option("Week Five","Yes");
    
    secondGroup[2][4][0]=new Option("Now Select This One"," ");
    secondGroup[2][4][1]=new Option("Week One","Yes");
    secondGroup[2][4][2]=new Option("Week Two","Yes");
    secondGroup[2][4][3]=new Option("Week Three","Yes");
    secondGroup[2][4][4]=new Option("Week Four","Yes");
    
    secondGroup[2][5][0]=new Option("Now Select This One"," ");
    secondGroup[2][5][1]=new Option("Week One","Yes");
    secondGroup[2][5][2]=new Option("Week Two","Yes");
    secondGroup[2][5][3]=new Option("Week Three","Yes");
    secondGroup[2][5][4]=new Option("Week Four","Yes");
    
    secondGroup[3][1][0]=new Option("---Select 3---"," ");
    secondGroup[3][1][0]=new Option("Now Select This One"," ");
    secondGroup[3][1][1]=new Option("Week One","No");
    secondGroup[3][1][2]=new Option("Week Two","No");
    secondGroup[3][1][3]=new Option("Week Three","No");
    secondGroup[3][1][4]=new Option("Week Four","No");
    secondGroup[3][1][5]=new Option("Week Five","No");
    
    secondGroup[3][2][0]=new Option("Now Select This One"," ");
    secondGroup[3][2][1]=new Option("Week One","No");
    secondGroup[3][2][2]=new Option("Week Two","No");
    secondGroup[3][2][3]=new Option("Week Three","No");
    secondGroup[3][2][4]=new Option("Week Four","No");
    
    secondGroup[3][3][0]=new Option("Now Select This One"," ");
    secondGroup[3][3][1]=new Option("Week One","No");
    secondGroup[3][3][2]=new Option("Week Two","No");
    secondGroup[3][3][3]=new Option("Week Three","No");
    secondGroup[3][3][4]=new Option("Week Four","No");
    secondGroup[3][3][5]=new Option("Week Five","No");
    
    secondGroup[3][4][0]=new Option("Now Select This One"," ");
    secondGroup[3][4][1]=new Option("Week One","No");
    secondGroup[3][4][2]=new Option("Week Two","No");
    secondGroup[3][4][3]=new Option("Week Three","No");
    secondGroup[3][4][4]=new Option("Week Four","No");
    
    secondGroup[3][5][0]=new Option("Now Select This One"," ");
    secondGroup[3][5][1]=new Option("Week One","No");
    secondGroup[3][5][2]=new Option("Week Two","No");
    secondGroup[3][5][3]=new Option("Week Three","No");
    secondGroup[3][5][4]=new Option("Week Four","No");
    
    var temp1=document.booking.week
    function redirect1(y){
    for (m=temp1.options.length-1;m>0;m--)
    temp1.options[m]=null
    for (i=0;i<secondGroup[document.booking.gite.options.selectedIndex][y].length;i++){
    temp1.options[i]=new Option(secondGroup[document.booking.gite.options.selectedIndex][y][i].text,secondGroup[document.booking.gite.options.selectedIndex][y][i].value)
    }
    temp1.options[0].selected=true
    }
    
    //-->
    </script>
      </p>
    
    </form>
    </body>
    </html>
    The above is my code for the form. When the form has been sent, where it should say 'week one, two, three, four or five' it says either 'yes' or 'no'. I know this is happening because I have changed the option next to it so when a week is selected the availability is shown in the box below it. It's fine when I keep the options the same, i.e. "week one","week one" and not "week one","yes", but then the yes or no value will not enter into the availability box.

    This is what I receive in my email when the form has been submitted.

    Code:
    ---------------------------------------------------------------------------
    gite                : Gite Two
    month               : July
    week                : Yes
    available           : Yes
    first name          : Sample
    surname             : Form
    Submit              : Submit
    ---------------------------------------------------------------------------
    As you can see where it says 'week' is has a 'yes' next to it....that should be the week number that has been selected.

    Does anyone know how I can correct this?

    Hope this makes sense and sorry for the long post!

    Thanks

  • #12
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    secondGroup[1][1][1]=new Option("Week One","Yes");
    That Yes should be Week One, or 1 or whatever value you want to show up in the email.

    If you were to look at the Option constructor, it's associated as follows:
    Code:
    secondGroup[1][1][1]=new Option("Week One","Yes");
    
    <select ...>
     <option value="Yes">Week One</option> ...
    </select>
    You'll have to fix that all over your code.

    Sadiq.

  • #13
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sad69
    Code:
    secondGroup[1][1][1]=new Option("Week One","Yes");
    That Yes should be Week One, or 1 or whatever value you want to show up in the email.
    That's how I originally had it but the 'week one' showed up in the box underneath, instead of the 'yes'. I thought that had solved it until I received the email and realised that value is for when the email is sent.

    If you were to look at the Option constructor, it's associated as follows:
    Code:
    secondGroup[1][1][1]=new Option("Week One","Yes");
    
    <select ...>
     <option value="Yes">Week One</option> ...
    </select>
    You'll have to fix that all over your code.

    Sadiq.
    The part between the select tags, where abouts do I need to enter that. For the available box or the week number?

    Could you show me a quick example please....if it's not too much trouble?

  • #14
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Would like to see an example of the triple combo (http://javascriptkit.com/script/scri...plecombo.shtml) script to be used for form submission only. As in, removing the portion of the script that automatically launches the URL.


  •  

    Posting Permissions

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