...

View Full Version : selection boxes



CShoemake
12-05-2009, 12:57 AM
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


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

Old Pedant
12-05-2009, 03:03 AM
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???

CShoemake
12-16-2009, 10:31 PM
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

Old Pedant
12-17-2009, 12:30 AM
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.

CShoemake
12-17-2009, 12:39 AM
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

CShoemake
12-17-2009, 12:39 AM
and i dont know how to set up "acceptable combos"

Philip M
12-17-2009, 07:37 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum