I have a created a registration page where i am taking few details from the cardholder about the card. When i take month and date from the user the selected date automatically gets diasplayed in the drop down box.This makes the same date displayed twice.Here's the code:
<strong>Expiry Date *<br />
<select name="edmm" id="month">
                  <% if( month != null) { %>
                  <option value="<%=month%>" selected="selected"><%=month%></option>
                  <% } else { %>
                  <option selected></option>
                  <% } %>                  
                  <% 
                        for(int i=1;i<=12;i++) { 
                                            String mmStr = "";
                                            if (i < 10)
                                                mmStr = "0" + i;
                                            else
                                                mmStr = "" + i; 
                                        %>
                  <option value="<%=mmStr%>" ><%=mmStr %></option>
                  <%        }
                  %>
                </select>
                <select name="edyy" id="year">
                  <% if( year != null) { %>
                  <option value="<%=year%>"  selected="selected"><%=year%></option>
                  <% } else { %>
                  <option selected></option>
                  <% } %>
                  <% 
                    for(int i=(yy);i<=(yy+50);i++) {
                  %>
                  <option value="<%=i%>" ><%= i %></option>
                  <% } %>
                </select><br />
                 <label for="label" class="rightmargin">  <sup>month</sup></label>        
                 <label for="label" class="rightmargin"><sup>year</sup></label>
</strong><br />
 
     
     
     
    