anchor.diff:  													name="origin_city_name" id="ocity"
   													onChange="showDestCity()">
   													<option value="-1">Select City</option>
  +													<%if(check>0){
  +														rs = st.executeQuery("select * from city_info where city_id="+origincityid);
  +														while(rs.next()){%>
  +															<option value="<%=origincityid%>" selected><%=rs.getString(2) %></option>
  +														<%}
  +														rs.close();
  +													}
   													
  +													%>
   												</select>
   											</div>
   										</div>
  
positive.code: 										<div class="field"
  											style="float: left; position: relative; margin-left: 20px">
  											<label for="travel_type">Travel Type: </label> <input
  												type="radio" name="travel_type"  value="One_way" >One_way
  											&nbsp; &nbsp; &nbsp;&nbsp; <input type="radio"
  												name="travel_type" value="Round_trip">Round_trip
  										</div>
  
  										<div class="field"
  											style="float: left; position: relative; margin-left: 70px">
  											<label for="transport_type">Transport Type: </label> <input
  												type="radio" name="transport_type" value="Private" >Private
  											&nbsp; &nbsp; &nbsp; &nbsp; <input type="radio" 
  												name="transport_type" value="Public" >Public
  
  										</div>
  									</td>
  
negative.code: 		Statement st = connjdbc.getDatacn();
  		ResultSet rs = null;
  %>
  <%
  		int check = 0;
  			int id = 0;
  			String vehicletype = null;
  			int origincityid = 0;
  			int descityid = 0;
  			int originstateid = 0;
  			int deststateid = 0;
  			String traveltype = null;
  			String typeoftransport = null;
  			String tollamount = null;
  			
  			String editid = request.getParameter("edit_id");
  			if (editid != null) {
  				check = 5;
  				session.setAttribute("edit_id", editid);
  				rs = st.executeQuery("Select * from tolltax_cost_per_vehicle where vehicle_type_id ="+ editid);
  				while (rs.next()) {
  					id = rs.getInt(1);
  					vehicletype = rs.getString(2);
  					origincityid = rs.getInt(3);
  					descityid = rs.getInt(4);
  					traveltype = rs.getString(5);
  					typeoftransport = rs.getString(6);
  					tollamount = rs.getString(7);
  				}
  				rs.close();
  				rs = st.executeQuery("Select state_id from city_info where city_id ="+ origincityid);
  				while(rs.next()){
  					originstateid = rs.getInt(1);
  				}
  				
  				rs.close();
  				rs = st.executeQuery("Select state_id from city_info where city_id ="+ descityid);
  				while(rs.next()){
  					deststateid = rs.getInt(1);
  				}
  			}
  	%>
  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  <html>
  <head>
  