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

Thread: selection boxes

  1. #1
    New Coder
    Join Date
    Aug 2009
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    selection boxes

    ok i have to selection boxes and they need to read each other and input either a yes or a no into a text form i would really appreciate some help thanks

    heres what i have if it helps

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=ISO-8859-1"
    http-equiv="content-type" />
    <title>Galvanic Corrosion Chart</title>
    </head>
    <body>
    <br />
    <form name="gcc">
    <div align="center"><a href="website.html"><img
    style="border: 0px solid ; width: 278px; height: 50px;" alt=""
    src="pics/LOGO.png" border="0" height="50" width="278" /></a><br />
    </div>
    <p style="text-align: center;" align="center"><font size="+2"><span
    style="font-family: Century Gothic;"><font
    style="text-decoration: underline;" size="+3">
    <font face="Futura Bk BT">Galvanic Corrosion Chart<span
    style="text-decoration: underline;"><span
    style="text-decoration: underline;"><span
    style="text-decoration: underline;"><span
    style="text-decoration: underline;"><span
    style="text-decoration: underline;" /></span></span></span></span></font></font></span></font><font
    face="Futura Bk BT"><br />
    </font>
    </p>
    <br />
    <table
    style="text-align: left; margin-left: auto; margin-right: auto;"
    height="119" width="610">
    <tbody>
    <tr>
    <td style="vertical-align: top; text-align: center;"
    align="center" valign="middle"><font face="Futura Bk BT"><font
    size="+1">&nbsp;<font size="+1"> Material 1</font></font><br />
    <select name="mat1">
    <option>Zinc Plating</option>
    <option>Zinc Die Casting</option>
    <option>Galvanize</option>
    <option>Tin-Zinc</option>
    <option>Cadmium-Zinc Solder</option>
    <option>Aluminum(Clad.1100.3003.5052.6160)</option>
    <option>Cadmium Plate</option>
    <option>Aluminum Castings</option>
    <option>Carbon &amp; Alloy Steel, Cast Iron</option>
    <option>Aluminum(2024.2017.7075)</option>
    <option>Lead</option>
    <option>Lead-Silver Solder</option>
    <option>Tin-Lead Solder</option>
    <option>Tin Plating</option>
    <option>Chromium Plate</option>
    <option>Stainless 18/2</option>
    <option>Copper &amp; Alloys</option>
    <option>Stainless 18/8</option>
    <option>Silver Solder</option>
    <option>Monel</option>
    <option>Nickel Plate</option>
    <option>Titanium</option>
    <option>Silver Plate</option>
    </select>
    <br />
    </font></td>
    <td colspan="1" rowspan="1"
    style="vertical-align: top; text-align: center;" valign="middle"><font
    face="Futura Bk BT"><font size="+1"> Material 2</font><br />
    </font>
    <select name="mat2">
    <option>Zinc Plating</option>
    <option>Zinc Die Casting</option>
    <option>Galvanize</option>
    <option>Tin-Zinc</option>
    <option>Cadmium-Zinc Solder</option>
    <option>Aluminum(Clad.1100.3003.5052.6160)</option>
    <option>Cadmium Plate</option>
    <option>Aluminum Castings</option>
    <option>Carbon &amp; Alloy Steel, Cast Iron</option>
    <option>Aluminum(2024.2017.7075)</option>
    <option>Lead</option>
    <option>Lead-Silver Solder</option>
    <option>Tin-Lead Solder</option>
    <option>Tin Plating</option>
    <option>Chromium Plate</option>
    <option>Stainless 18/2</option>
    <option>Copper &amp; Alloys</option>
    <option>Stainless 18/8</option>
    <option>Silver Solder</option>
    <option>Monel</option>
    <option>Nickel Plate</option>
    <option>Titanium</option>
    <option>Silver Plate</option>
    </select>
    </td>
    </tr>
    <tr>
    <td colspan="2" rowspan="1" align="center" valign="top"><font
    face="Futura Bk BT" size="+1">Acceptable</font><br />
    <font face="Futura Bk BT"><input name="AR" readonly="readonly" /></font></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body>
    </html>

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,652
    Thanks
    80
    Thanked 4,640 Times in 4,602 Posts
    Okay, and what determines whether the answer is yes or no????

    I, for one, haven't got a clue. Just that the two answers must be different???
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    New Coder
    Join Date
    Aug 2009
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts
    ok lets assume that in Material 1 is Zinc Plating if you select like Cadmium-Zinc Solder or Tin-Zinc in Material 2 then a yes would pop up in the "Acceptable" box if not then a no would

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,652
    Thanks
    80
    Thanked 4,640 Times in 4,602 Posts
    That's one example.

    I would assume that you need an answer for each of the materials in list 1.

    So you'd have to have a table of acceptable combinations.

    But wouldn't it be better to have a blank list for material 2 and then, *after* they select a material 1, you populate the 2nd drop down with *only* acceptable second materials??

    So a user doesn't have to *guess* which ones work and keep trying them until they do???

    Optionally, you could have all the acceptable choices in material 2 change to a different color.

    But no matter what, you have to provide the list of acceptable combos.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #5
    New Coder
    Join Date
    Aug 2009
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts
    well no i need it this way so that people can see if the two metals they want to use will rust rapidly under water

  • #6
    New Coder
    Join Date
    Aug 2009
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts
    and i dont know how to set up "acceptable combos"
    Last edited by CShoemake; 12-17-2009 at 01:42 AM.

  • #7
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,310
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    Quote Originally Posted by CShoemake View Post
    and i dont know how to set up "acceptable combos"
    As Old Pedant says, unless you can provide a list of which combinations of metals rust under water and which combinations of metals do not rust under water and are thus acceptable, it is not possible to help you further.

    "But wouldn't it be better to have a blank list for material 2 and then, *after* they select a material 1, you populate the 2nd drop down with *only* acceptable second materials??"
    Seems like good advice to me.


  •  

    Posting Permissions

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