troubleshooting Question

Submit form data and go to related page at the same time (within one page)

Avatar of MilburnDrysdale
MilburnDrysdale asked on
JavaScriptScripting Languages
3 Comments1 Solution215 ViewsLast Modified:
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.Item("TERMINAL").Value)%></option>
If (rs1.CursorType > 0) Then
End If
  <input name="startdate" type="date" id="startdate" />
  <input name="enddate" type="date" id="enddate" />
  <input name="Submit2" type="submit" onclick="MM_goToURL('parent','PAG_PUD_ROUTES_XLS.asp?<%= Server.HTMLEncode(MM_keepForm) %>');return document.MM_returnValue" value="Submit" />

Can I do this at the same time?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros