MilburnDrysdale
asked on
Submit form data and go to related page at the same time (within one page)
Hello - have a form with a list box and two text boxes. Wanting to capture the form input as url parameters when the form is submitted and redirect at the same time (kind of like a jump screen?). Here is what I have that does not work because (I assume) the forms don't get submitted prior to the redirect...
<form id="form1" name="form1" method="post" action="">
<select name="terminal" id="terminal">
<option value="Select Terminal From List">Select Terminal From List</option>
<%
While (NOT rs1.EOF)
%>
<option value="<%=(rs1.Fields.Item ("TERMINAL ").Value)% >"><%=(rs1 .Fields.It em("TERMIN AL").Value )%></optio n>
<%
rs1.MoveNext()
Wend
If (rs1.CursorType > 0) Then
rs1.MoveFirst
Else
rs1.Requery
End If
%>
</select>
<label>
<input name="startdate" type="date" id="startdate" />
</label>
<label>
<input name="enddate" type="date" id="enddate" />
</label>
<label>
<input name="Submit2" type="submit" onclick="MM_goToURL('paren t','PAG_PU D_ROUTES_X LS.asp?<%= Server.HTMLEncode(MM_keepF orm) %>');return document.MM_returnValue" value="Submit" />
</label>
</form>
Can I do this at the same time?
<form id="form1" name="form1" method="post" action="">
<select name="terminal" id="terminal">
<option value="Select Terminal From List">Select Terminal From List</option>
<%
While (NOT rs1.EOF)
%>
<option value="<%=(rs1.Fields.Item
<%
rs1.MoveNext()
Wend
If (rs1.CursorType > 0) Then
rs1.MoveFirst
Else
rs1.Requery
End If
%>
</select>
<label>
<input name="startdate" type="date" id="startdate" />
</label>
<label>
<input name="enddate" type="date" id="enddate" />
</label>
<label>
<input name="Submit2" type="submit" onclick="MM_goToURL('paren
</label>
</form>
Can I do this at the same time?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad to help. Thanks for the points and grade :)
ASKER
<form id="form1" name="form1" method="get" action="PAG_PUD_ROUTES_XLS
<select name="terminal" id="terminal">
<option value="Select Terminal From List">Select Terminal From List</option>
<%
While (NOT rs1.EOF)
%>