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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Submitting Triple Combo results as an email

    Hey everyone,

    I work for a beer distributer and make signs for all of our salesmen.
    I recently came up with the idea of having all of our salesmen submit their request forms through email with a website form. Basically, they can be at a bar or a store meeting with their rep and they can send their sign orders in straight from the source as opposed to the way they do it now which is waiting until they get to the office and forgetting half of their things they need, not to mention they all have really crappy handwriting.

    The source code (which originated from the triple source code @ javascriptkit.com) I have is quite long, but I haven't finished the latter part of it yet because it makes no sense to me until I can get the form to work.

    Here is my problem.

    When they choose submit, a message pops up saying that Outlook is trying to send the email. They click yes, and go to their Outlook Outbox, where the form results are waiting nice and neatly.....
    Except stage2 & stage3 are empty. Even though in the triple script there were choices selected, there is nothing in the form. I am scratching my head here over what is probably something really simple. Any help would be appreciated.

    Code will be in second post due to length.
    Last edited by Moiner007; 08-28-2006 at 10:56 PM.

  • #2
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <html>
    <head>
    <title>Sign Room Request Form</title>

    <script language="JavaScript1.2">
    function WhichSize1(obj){

    if(obj.Type1.selectedIndex == 0){
    obj.Size1.length=1
    obj.Size1.options[0].value="Choose Size"
    obj.Size1.options[0].text="Choose Size"
    obj.Size1.selectedIndex = 0
    return
    }
    if(obj.Type1.selectedIndex == 1){
    obj.Size1.length=5
    obj.Size1.options[0].value="Select a Banner Size"
    obj.Size1.options[0].text="Select a Banner Size"
    obj.Size1.options[1].value="3 x 6"
    obj.Size1.options[1].text="3 x 6"
    obj.Size1.options[2].value="2 x 4"
    obj.Size1.options[2].text="2 x 4"
    obj.Size1.options[3].value="1.5 x 3"
    obj.Size1.options[3].text="1.5 x 3"
    obj.Size1.options[4].value="1 x 2"
    obj.Size1.options[4].text="1 x 2"
    obj.Size1.selectedIndex = 0
    return
    }
    if(obj.Type1.selectedIndex == 2){
    obj.Size1.length=4
    obj.Size1.options[0].value="Select a Streamer"
    obj.Size1.options[0].text="Select a Streamer"
    obj.Size1.options[1].value="Full Streamer"
    obj.Size1.options[1].text="Full Streamer"
    obj.Size1.options[2].value="1/2 Streamer"
    obj.Size1.options[2].text="1/2 Streamer"
    obj.Size1.options[3].value="3/4 Streamer"
    obj.Size1.options[3].text="3/4 Streamer"
    obj.Size1.selectedIndex = 0
    return
    }
    if(obj.Type1.selectedIndex == 3){
    obj.Size1.length=1
    obj.Size1.options[0].value="Standard Size"
    obj.Size1.options[0].text="Standard Size"
    obj.Size1.selectedIndex = 0
    return
    }
    if(obj.Type1.selectedIndex == 4){
    obj.Size1.length=1
    obj.Size1.options[0].value="Standard Size"
    obj.Size1.options[0].text="Standard Size"
    obj.Size1.selectedIndex = 0
    return
    }
    obj.Size1.length=1
    obj.Size1.options[0].value="Standard Size"
    obj.Size1.options[0].text="Standard Size"
    obj.Size1.selectedIndex = 0
    }

    </script>

    </head>
    <body>

    <form name="isc" action="MAILTO:moiner007_22@yahoo.com?subject=Sign Room Request" method="post" enctype="text/plain">

    <h2>Sign Room Order Form</h2>

    Name:
    <select name="Salesman">
    <option>Choose Salesman</option>
    <option>Frank Husak</option>
    <option>Mike Scandiff</option>
    <option>Mark Goldsberry</option>
    <option>Mike Rhines</option>
    <option>Brad Fortney</option>
    <option>Jim Devries</option>
    <option>Brian Slotowski</option>
    <option>Bill McDonald</option>
    <option>Tino Rodriguez</option>
    <option>Dan Stubing</option>
    <option>Shayne Flackus</option>
    <option>Mike Reibel</option>
    <option>Tom Kloss</option>
    <option>Bob Selle</option>
    </select>
    <br>
    Account:
    <input type="text" name="Account"
    value="" size="30">
    <br>
    <br>
    <h3>Family/Brand/Template:</h3>
    <table border="0" cellspacing="0" cellpadding="0">
    <tr align="left">
    <td nowrap height="11"> &nbsp;

    <select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
    <option selected>Select a Family</option>
    <option>Miller</option>
    <option>Coors</option>
    <option>CCM</option>
    <option>Boston</option>
    <option>Guinness</option>
    <option>Mike's</option>
    <option>Other</option>
    </select>

    <select name="stage2" size="1" onChange="redirect1(this.options.selectedIndex)">
    <option selected>Select a Brand</option>
    </select>

    <select name="stage3" size="1" onChange="null">
    <option selected>Select a Template</option>
    </select>

    <script>
    <!--

    var groups=document.isc.example.options.length
    var group=new Array(groups)
    for (i=0; i<groups; i++)
    group[i]=new Array()

    group[0][0]=new Option("Select a Brand");

    group[1][0]=new Option("Select a Miller Brand");
    group[1][1]=new Option("Lite");
    group[1][2]=new Option("MGD");
    group[1][3]=new Option("MGD Light");
    group[1][4]=new Option("Lite/MGD");
    group[1][5]=new Option("Lite/MGD/MGD Light");
    group[1][6]=new Option("MGD/MGD Light");
    group[1][7]=new Option("Sharps");
    group[1][8]=new Option("High Life");
    group[1][9]=new Option("Hamm's");
    group[1][10]=new Option("Red Dog");
    group[1][11]=new Option("Icehouse");
    group[1][12]=new Option("Milwaukee's Best");
    group[1][13]=new Option("Magnum");
    group[1][14]=new Option("Mickey's");
    group[1][15]=new Option("Olde English");
    group[1][16]=new Option("Leinenkugel");
    group[1][17]=new Option("Peroni");
    group[1][18]=new Option("Fosters");
    group[1][19]=new Option("Pilsner Urquell");
    group[1][20]=new Option("Tyskie");
    group[1][21]=new Option("Steel Reserve");
    group[1][22]=new Option("Sparks");

    group[2][0]=new Option("Select a Coors Brand");
    group[2][1]=new Option("Coors");
    group[2][2]=new Option("Coors Light");
    group[2][3]=new Option("Blue Moon");
    group[2][4]=new Option("Aspen Edge");
    group[2][5]=new Option("Keystone Light");
    group[2][6]=new Option("Killians");
    group[2][7]=new Option("Zima");
    group[2][8]=new Option("Molson");

    group[3][0]=new Option("Select a CCM Brand");
    group[3][1]=new Option("Tecate");
    group[3][2]=new Option("Dos XX");
    group[3][3]=new Option("Carta Blanca");
    group[3][4]=new Option("Bohemia");
    group[3][5]=new Option("Sol");

    group[4][0]=new Option("Select a Boston Brand");
    group[4][1]=new Option("Samual Adams");
    group[4][2]=new Option("Hardcore");
    group[4][3]=new Option("Twisted Tea");

    group[5][0]=new Option("Select a Guinness Brand");
    group[5][1]=new Option("Guinness");
    group[5][2]=new Option("Harp");
    group[5][3]=new Option("Smithwicks");
    group[5][4]=new Option("Red Stripe");
    group[5][5]=new Option("Kalibur");
    group[5][6]=new Option("Parrot Bay");
    group[5][7]=new Option("Smirnoff");

    group[6][0]=new Option("Select a Mike's Brand");
    group[6][1]=new Option("Mike's Hard Lemonade");
    group[6][2]=new Option("All Mike's Flavors");

    group[7][0]=new Option("Select a Other Brand");
    group[7][1]=new Option("New Castle");
    group[7][2]=new Option("Fat Tire");
    group[7][3]=new Option("McEwans/John Courage");
    group[7][4]=new Option("Asahi");
    group[7][5]=new Option("Magners");
    group[7][6]=new Option("Carlsberg");




    var temp=document.isc.stage2


    function redirect(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.isc.stage2.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 a Template");
    secondGroup[1][0][0]=new Option("Select a Template");
    secondGroup[1][1][0]=new Option("Select a Lite Template");
    secondGroup[1][1][1]=new Option("Generic");
    secondGroup[1][1][2]=new Option("Basketball");
    secondGroup[1][1][3]=new Option("Bikers");
    secondGroup[1][1][4]=new Option("Billiards");
    secondGroup[1][1][5]=new Option("Bowling");
    secondGroup[1][1][6]=new Option("Boxing");
    secondGroup[1][1][7]=new Option("Chicago Bears");
    secondGroup[1][1][8]=new Option("Border Battle");
    secondGroup[1][1][9]=new Option("Chicago White Sox");
    secondGroup[1][1][10]=new Option("Darts");
    secondGroup[1][1][11]=new Option("Fishing");
    secondGroup[1][1][12]=new Option("Football");
    secondGroup[1][1][13]=new Option("Fridge Pack");
    secondGroup[1][1][14]=new Option("Golf");
    secondGroup[1][1][15]=new Option("Halloween");
    secondGroup[1][1][16]=new Option("Hispanic");
    secondGroup[1][1][17]=new Option("Holiday Seasonal");
    secondGroup[1][1][18]=new Option("Horse Racing");
    secondGroup[1][1][19]=new Option("Men of the Square Table");
    secondGroup[1][1][20]=new Option("Music");
    secondGroup[1][1][21]=new Option("Navy");
    secondGroup[1][1][22]=new Option("Poker");
    secondGroup[1][1][23]=new Option("Racing");
    secondGroup[1][1][24]=new Option("Skiing");
    secondGroup[1][1][25]=new Option("Snowmobiling");
    secondGroup[1][1][26]=new Option("Summer");
    secondGroup[1][1][27]=new Option("Volleyball");

    secondGroup[1][2][0]=new Option("Select a MGD Template");
    secondGroup[1][2][1]=new Option("Generic");
    secondGroup[1][2][2]=new Option("Basketball");
    secondGroup[1][2][3]=new Option("Bikers");
    secondGroup[1][2][4]=new Option("Billiards");
    secondGroup[1][2][5]=new Option("Bowling");
    secondGroup[1][2][6]=new Option("Boxing");
    secondGroup[1][2][7]=new Option("Chicago Bears");
    secondGroup[1][2][8]=new Option("Darts");
    secondGroup[1][2][9]=new Option("Fishing");
    secondGroup[1][2][10]=new Option("Football");
    secondGroup[1][2][11]=new Option("Fridge Pack");
    secondGroup[1][2][12]=new Option("Golf");
    secondGroup[1][2][13]=new Option("Halloween");
    secondGroup[1][2][13]=new Option("Hispanic");
    secondGroup[1][2][14]=new Option("Holiday Seasonal");
    secondGroup[1][2][15]=new Option("Horse Racing");
    secondGroup[1][2][16]=new Option("Music");
    secondGroup[1][2][17]=new Option("Poker");
    secondGroup[1][2][18]=new Option("Racing");
    secondGroup[1][2][19]=new Option("Skiing");
    secondGroup[1][2][20]=new Option("Snowmobiling");
    secondGroup[1][2][21]=new Option("Summer");
    secondGroup[1][2][22]=new Option("Volleyball");
    secondGroup[1][2][23]=new Option("Where Style Meets Substance");

    secondGroup[1][3][0]=new Option("Select a MGD Light Template");
    secondGroup[1][3][1]=new Option("Generic");

    secondGroup[1][4][0]=new Option("Select a Lite/MGD Template");
    secondGroup[1][4][1]=new Option("Generic");
    secondGroup[1][4][2]=new Option("Basketball");
    secondGroup[1][4][3]=new Option("Bikers");
    secondGroup[1][4][4]=new Option("Billiards");
    secondGroup[1][4][5]=new Option("Bowling");
    secondGroup[1][4][6]=new Option("Boxing");
    secondGroup[1][4][7]=new Option("Chicago Bears");
    secondGroup[1][4][8]=new Option("Darts");
    secondGroup[1][4][9]=new Option("Fishing");
    secondGroup[1][4][10]=new Option("Football");
    secondGroup[1][4][11]=new Option("Fridge Pack");
    secondGroup[1][4][12]=new Option("Golf");
    secondGroup[1][4][13]=new Option("Halloween");
    secondGroup[1][4][13]=new Option("Hispanic");
    secondGroup[1][4][14]=new Option("Holiday Seasonal");
    secondGroup[1][4][15]=new Option("Horse Racing");
    secondGroup[1][4][16]=new Option("Music");
    secondGroup[1][4][17]=new Option("Poker");
    secondGroup[1][4][18]=new Option("Racing");
    secondGroup[1][4][19]=new Option("Skiing");
    secondGroup[1][4][20]=new Option("Snowmobiling");
    secondGroup[1][4][21]=new Option("Summer");
    secondGroup[1][4][22]=new Option("Volleyball");

    secondGroup[1][5][0]=new Option("Select a Lite/MGD/MGD Light Template");
    secondGroup[1][5][1]=new Option("Generic");

    secondGroup[1][6][0]=new Option("Select a MGD/MGD Light Template");
    secondGroup[1][6][1]=new Option("Generic");
    secondGroup[1][6][2]=new Option("New Package");

    secondGroup[1][7][0]=new Option("Select a Sharps Template");
    secondGroup[1][7][1]=new Option("Generic");

    secondGroup[1][8][0]=new Option("Select a High Life Template");
    secondGroup[1][8][1]=new Option("Generic");
    secondGroup[1][8][2]=new Option("Dual Generic");
    secondGroup[1][8][3]=new Option("Bowling");
    secondGroup[1][8][4]=new Option("Summer");
    secondGroup[1][8][5]=new Option("Tall Blonde");
    secondGroup[1][8][6]=new Option("Fridge Pack");
    secondGroup[1][8][7]=new Option("Full Flavor");
    secondGroup[1][8][8]=new Option("Relax. Lounge Out.");

    secondGroup[1][9][0]=new Option("Select a Hamm's Template");
    secondGroup[1][9][1]=new Option("Generic");

    secondGroup[1][10][0]=new Option("Select a Red Dog Template");
    secondGroup[1][10][1]=new Option("Generic");

    secondGroup[1][11][0]=new Option("Select a Icehouse Template");
    secondGroup[1][11][1]=new Option("Generic");
    secondGroup[1][11][2]=new Option("Football");

    secondGroup[1][12][0]=new Option("Select a Milwaukee's Best Template");
    secondGroup[1][12][1]=new Option("Tri Generic");
    secondGroup[1][12][2]=new Option("Best Generic");
    secondGroup[1][12][3]=new Option("Light Generic");
    secondGroup[1][12][4]=new Option("Ice Generic");
    secondGroup[1][12][5]=new Option("Ice Fishing");
    secondGroup[1][12][6]=new Option("Hunting");
    secondGroup[1][12][7]=new Option("Poker");

    secondGroup[1][13][0]=new Option("Select a Magnum Template");
    secondGroup[1][13][1]=new Option("Generic");

    secondGroup[1][14][0]=new Option("Select a Mickey's Template");
    secondGroup[1][14][1]=new Option("Generic");
    secondGroup[1][14][2]=new Option("Green, Gold & Bold");
    secondGroup[1][14][3]=new Option("Next Best Thing");

    secondGroup[1][15][0]=new Option("Select a Olde English Template");
    secondGroup[1][15][1]=new Option("Generic");

    secondGroup[1][16][0]=new Option("Select a Leinenkugel Template");
    secondGroup[1][16][1]=new Option("Generic");
    secondGroup[1][16][2]=new Option("Honeyweiss");
    secondGroup[1][16][3]=new Option("Berryweiss");
    secondGroup[1][16][4]=new Option("Sunset Wheat");
    secondGroup[1][16][5]=new Option("Red");
    secondGroup[1][16][6]=new Option("Creamy Dark");
    secondGroup[1][16][7]=new Option("Big Butt Dopplebock");
    secondGroup[1][16][8]=new Option("Oktoberfest");
    secondGroup[1][16][9]=new Option("Apple Spice");
    secondGroup[1][16][10]=new Option("Mix It Up");
    secondGroup[1][16][11]=new Option("Taste The Adventure");

    secondGroup[1][17][0]=new Option("Select a Peroni Template");
    secondGroup[1][17][1]=new Option("Generic");
    secondGroup[1][17][2]=new Option("Night Club");

    secondGroup[1][18][0]=new Option("Select a Foster's Template");
    secondGroup[1][18][1]=new Option("Generic");

    secondGroup[1][19][0]=new Option("Select a Pilsner Urquell Template");
    secondGroup[1][19][1]=new Option("Generic");

    secondGroup[1][20][0]=new Option("Select a Tyskie Template");
    secondGroup[1][20][1]=new Option("Generic");

    secondGroup[1][21][0]=new Option("Select a Steel Reserve Template");
    secondGroup[1][21][1]=new Option("Generic");

    secondGroup[1][22][0]=new Option("Select a Sparks Template");
    secondGroup[1][22][1]=new Option("Sparks Generic");
    secondGroup[1][22][2]=new Option("Light Generic");
    secondGroup[1][22][3]=new Option("Plus Generic");
    secondGroup[1][22][4]=new Option("Tri Generic");


    secondGroup[2][0][0]=new Option("Select a Template");
    secondGroup[2][1][0]=new Option("Now Select This One");
    secondGroup[2][1][1]=new Option("CNN");
    secondGroup[2][1][2]=new Option("MSNBC");
    secondGroup[2][1][3]=new Option("ABC News");

    secondGroup[2][2][0]=new Option("Now Select A Page");
    secondGroup[2][2][1]=new Option("News.com");
    secondGroup[2][2][2]=new Option("Wired");

    var temp1=document.isc.stage3
    function redirect1(y){
    for (m=temp1.options.length-1;m>0;m--)
    temp1.options[m]=null
    for (i=0;i<secondGroup[document.isc.example.options.selectedIndex][y].length;i++){
    temp1.options[i]=new Option(secondGroup[document.isc.example.options.selectedIndex][y][i].text,secondGroup[document.isc.example.options.selectedIndex][y][i].value)
    }
    temp1.options[0].selected=true
    }

    function redirect2(z){
    window.location=temp1[z].value
    }

    //-->
    </script>

    <h3>Type:</h3>
    <select name="Type1" onchange="WhichSize1(this.form)">
    <option>Select a Type</option>
    <option>Banner</option>
    <option>Streamer</option>
    <option>Dangler</option>
    <option>Display Card</option>
    <option>Tuck Card</option>
    </select>
    <select name="Size1">
    <option value="0" selected>Choose Size</option>
    </select>
    Quantity:
    <input type="text" name="Quantity" value="" size="1">
    <input type="checkbox" name="paper" value="Outdoor"> Outdoor
    <br>
    <p>Price/Product Information: (Also Include Event Info)<br>
    <textarea name="Price/Product Info" rows="4" cols="48">
    </textarea><p>

    <p>Notes: (Special Customs, Table Tents, Schedule Banners, Gromits)<br>
    <textarea name="Notes" rows="4" cols="48">
    </textarea><p>

    <input type="submit" value="Submit Order">
    <input type="reset" value="Reset">

    </form>

    </body>
    </html>
    Last edited by Moiner007; 08-28-2006 at 10:45 PM.

  • #3
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Any help at all would be greatly appreciated. I have searched on these forums for this specific problem with no luck.

  • #4
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I can't see the problem here...I hope it's simple...

    Please check my above posts. I really need to resolve this.

  • #5
    Regular Coder
    Join Date
    Jul 2006
    Posts
    176
    Thanks
    14
    Thanked 1 Time in 1 Post
    Your action is a 'mailto:' which is a standard html function. The results you fequest for the reply, I believe, exceed the ability of the 'mailto:' function to populate the message area of the reply.

    I would be using a cgi script provided by the isp host for this type of response.

    Andy


  •  

    Posting Permissions

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