Hi, I have a page I've been testing that has two dynamic pulldown boxes -- a user chooses the first pulldown and that choice is posted to the same page, once the second choice is made (based on the first choice), the results are posted to the results page (results.asp). It works great EXCEPT when I try to make this page the index.asp page (my default page). I get an extra slash in the code when the results post to the same page(ie: Any ideas????
Thanks for any help.
Cindy
<form name="form1" method="post" action="results.asp">
<% if (Request.QueryString("ParentID"
= ""
then%>
<select name="ParentID" onChange="MM_jumpMenu('parent',this,1)">
<% else %><select name="ParentID" onChange="MM_jumpMenu('parent',this,1)">
<% end if %>
<%
If NOT RSParentID.EOF Then
While NOT RSParentID.EOF
%>
<% if(Request.QueryString("ParentID"
<> ""
then %>
<% if(RSParentID("ParentID"
= Request.QueryString("ParentID"
) then %>
<option value="<%=RSParentID("ParentID"
%>" SELECTED><%=(RSParentID("ParentID"
)%></option>
<% else %>
<option value="<%=RSParentID("ParentID"
%>"><%=(RSParentID("ParentID"
)%></option>
<% end if%>
<% else %>
<option value="<%=RSParentID("ParentID"
%>"><%=(RSParentID("ParentID"
)%></option>
<% end if%>
<%
RSParentID.MoveNext
Wend
End If
If (RSParentID.CursorType > 0) Then
RSParentID.MoveFirst
Else
RSParentID.Requery
End If
%></select>
<select name="ChildID">
<%
If NOT RecordSet1.EOF Then
While (NOT Recordset1.EOF)
%>
<option value="<%=(Recordset1("ChildID"
)%>" ><%=(Recordset1("ChildID"
)%></option>
<%
Recordset1.MoveNext()
Wend
End If
If (Recordset1.CursorType > 0) Then
Recordset1.MoveFirst
Else
Recordset1.Requery
End If
%>
</select>
<input type="submit" name="Submit" value="Search!">
</form>
Thanks for any help.
Cindy
<form name="form1" method="post" action="results.asp">
<% if (Request.QueryString("ParentID"
<select name="ParentID" onChange="MM_jumpMenu('parent',this,1)">
<% else %><select name="ParentID" onChange="MM_jumpMenu('parent',this,1)">
<% end if %>
<%
If NOT RSParentID.EOF Then
While NOT RSParentID.EOF
%>
<% if(Request.QueryString("ParentID"
<% if(RSParentID("ParentID"
<option value="<%=RSParentID("ParentID"
<% else %>
<option value="<%=RSParentID("ParentID"
<% end if%>
<% else %>
<option value="<%=RSParentID("ParentID"
<% end if%>
<%
RSParentID.MoveNext
Wend
End If
If (RSParentID.CursorType > 0) Then
RSParentID.MoveFirst
Else
RSParentID.Requery
End If
%></select>
<select name="ChildID">
<%
If NOT RecordSet1.EOF Then
While (NOT Recordset1.EOF)
%>
<option value="<%=(Recordset1("ChildID"
<%
Recordset1.MoveNext()
Wend
End If
If (Recordset1.CursorType > 0) Then
Recordset1.MoveFirst
Else
Recordset1.Requery
End If
%>
</select>
<input type="submit" name="Submit" value="Search!">
</form>