PDA

View Full Version : Double selection



anirdesh99
07-20-2006, 04:43 PM
I have 50 counties. User can select upto 10 counties. Once these counties
selected user needs to group them into three group say A, B and C.
I have county name and county number. I want show users that they selected following counties and Group - A have these counties, Group - B have these county and Group - C have these counties.

It is possible that
(1) Group A can have all counties and Group B and/or Group C can be blank
(2) Group A must have at least one county or
(3) Group

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Home Market Analysis</title>
<meta name="author" content="">
<meta name="description" content="Home Market Analysis">
<meta name="keywords" content="HOME">
</head>

<body bgcolor="#FF6347" text="#800000" link="#0000FF" vlink="#800080" alink="#0000FF">

<h1>Home Market Analysis</h1>

<form method="post" Action="SelectGrp.HTML" >
<INPUT TYPE="HIDDEN" NAME="Avail">
<INPUT TYPE="HIDDEN" NAME="Sel">

<CENTER>
<P> <CENTER><FONT FACE="Arial, Verdana, Comic Sans MS, Sans-serif" SIZE="3"
COLOR="blue">
<b>Please select no more that 10 counties.</b></font>
</center>


<TABLE align="center" SIZE="85" BORDER="25" CELLPADDING="10" CELLSPACING="4" BGCOLOR="ORANGE" bordercolorright="gray"
BORDERCOLORDARK="gray" bordercolor="gray">
<TR>
<TD VALIGN="TOP" align="center" valign="middle" bgcolor="silver">
<FONT FACE="Arial, Helvetica, sans-serif" size="3" COLOR="PURPLE">
<CENTER><B>Available Counties: </B></FONT></CENTER>
</FONT>
<B> </B><BR>

<SELECT MULTIPLE NAME="AvailItems" SIZE="5" WIDTH="20">
<!--eachrow-->
<option value="c1">c1
<option value="c1">c2
<option value="c1">c3
<option value="c1">c4
<option value="c1">c5
<option value="c1">c6
<option value="c1">c7
<option value="c1">c8
<option value="c1">c9
<option value="c1">c10
<option value="c1">c11
<option value="c1">c12
<option value="c1">c13
</B>
<!--endrow-->
</select>
</TD>
<BR>
<TD ALIGN="CENTER">
<BR>
</table>
</form>

<FORM NAME="MAIN" method="post" action="SelectGrp.HTML" >
<TABLE align="center" SIZE="85" BORDER="25" CELLPADDING="10" CELLSPACING="4" BGCOLOR="ORANGE" bordercolorright="gray"
BORDERCOLORDARK="gray" bordercolor="gray">
<tr><td><FONT FACE="Arial, Helvetica, sans-serif" size="3" COLOR="PURPLE">
Subgroup # 1</font></td></tr>
<td>
<input type="Text" name="C1" VALUE=' ' SIZE="5">
<input type="Text" name="C2" VALUE=' ' SIZE="5">
<input type="Text" name="C3" VALUE=' ' SIZE="5">
<input type="Text" name="C4" VALUE=' ' SIZE="5">
<input type="Text" name="C5" VALUE=' ' SIZE="5">

<input type="Text" name="C6" VALUE=' ' SIZE="5">
<input type="Text" name="C7" VALUE=' ' SIZE="5">
<input type="Text" name="C8" VALUE=' ' SIZE="5">
<input type="Text" name="C9" VALUE=' ' SIZE="5">
<input type="Text" name="C10" VALUE=' ' SIZE="5">
</td>
<tr><td><FONT FACE="Arial, Helvetica, sans-serif" size="3" COLOR="PURPLE">Subgroup # 2</td></tr>
<td>
<input type="Text" name="C1" VALUE=' ' SIZE="5">
<input type="Text" name="C2" VALUE=' ' SIZE="5">
<input type="Text" name="C3" VALUE=' ' SIZE="5">
<input type="Text" name="C4" VALUE=' ' SIZE="5">
<input type="Text" name="C5" VALUE=' ' SIZE="5">

<input type="Text" name="C6" VALUE=' ' SIZE="5">
<input type="Text" name="C7" VALUE=' ' SIZE="5">
<input type="Text" name="C8" VALUE=' ' SIZE="5">
<input type="Text" name="C9" VALUE=' ' SIZE="5">
<input type="Text" name="C10" VALUE=' ' SIZE="5">
</td>
<tr><td><FONT FACE="Arial, Helvetica, sans-serif" size="3" COLOR="PURPLE">Subgroup # 3</td></tr>
<td>
<input type="Text" name="C1" VALUE=' ' SIZE="5">
<input type="Text" name="C2" VALUE=' ' SIZE="5">
<input type="Text" name="C3" VALUE=' ' SIZE="5">
<input type="Text" name="C4" VALUE=' ' SIZE="5">
<input type="Text" name="C5" VALUE=' ' SIZE="5">

<input type="Text" name="C6" VALUE=' ' SIZE="5">
<input type="Text" name="C7" VALUE=' ' SIZE="5">
<input type="Text" name="C8" VALUE=' ' SIZE="5">
<input type="Text" name="C9" VALUE=' ' SIZE="5">
<input type="Text" name="C10" VALUE=' ' SIZE="5">
</td>
</table>
</FORM>



</body>
</html>