cmitsys
Technical User
- Oct 31, 2003
- 14
Hi, I have a from on an ASP page that I am having problems with. What I need to do is have the action link contain the values that were entered into the form - for example...
As you can see the action element will have dynamic values, so far this has not worked for me. I have read a few things on passing values from one form to the next, but they seem to depend on the second page requesting these values, I am passing this to an Oracle Database Procedure. So the requesting page will not work.
How do I put the values entered into the form into the action element?
OR
Do you know of another way to do this without the user having to click more than the 1 submit button?
FYI: If you read the code you will see only the crew is dynamic in this example, the mtrl (materials) will be using the same method to make it dynamic also.
Thnx in advance!
Code:
<form action="[URL unfurl="true"]http://dot0dta1asodev5.mdot.w2k.state.me.us:7778/devmats/reports.salt_usage?crew=<%=[/URL] crew %>&mtrl=1" method="post" name="mtrl_usage" id="mtrl_usage">
<table width="50%" border="0" cellspacing="5" cellpadding="0">
<tr valign="top">
<td width="27%" nowrap><div align="right"><strong>4 digit Crew Number: </strong></div></td>
<td width="3%" nowrap><strong> </strong></td>
<td width="14%" nowrap><input name="crew" type="text" id="crew" size="10" maxlength="4"> </td>
<td width="56%" nowrap><div align="right"><em><strong>Example:</strong></em> Division 1 = 1000<br>
District 13 = 1300<br>
Crew 1321 = 1321 </div></td>
</tr>
<tr valign="top">
<td nowrap><div align="right"><strong>Material: </strong></div></td>
<td nowrap> </td>
<td colspan="2" nowrap><select name="material" id="material">
<%
While (NOT rsMtrl.EOF)
%>
<option value="<%=(rsMtrl.Fields.Item("MATL_SYS_ID").Value)%>"><%=(rsMtrl.Fields.Item("DESCR").Value)%></option>
<%
rsMtrl.MoveNext()
Wend
If (rsMtrl.CursorType > 0) Then
rsMtrl.MoveFirst
Else
rsMtrl.Requery
End If
%>
</select></td>
</tr>
<tr valign="top">
<td colspan="4" nowrap><div align="center">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</div></td>
</tr>
</table>
</form>
As you can see the action element will have dynamic values, so far this has not worked for me. I have read a few things on passing values from one form to the next, but they seem to depend on the second page requesting these values, I am passing this to an Oracle Database Procedure. So the requesting page will not work.
How do I put the values entered into the form into the action element?
OR
Do you know of another way to do this without the user having to click more than the 1 submit button?
FYI: If you read the code you will see only the crew is dynamic in this example, the mtrl (materials) will be using the same method to make it dynamic also.
Thnx in advance!