|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Form help
Here's what I need to do:
1. Submit a form from a.asp to b.asp 2. Have a.asp redirect to some c.asp which is decided by a form field gotten from Request.Form("Field") 3. Have all the previous form data available in c.asp I already have a.asp, b.asp, and c.asp completed except for the part in b.asp where I request the fields from a.asp. What I need to know how to do is how to request all the fields from a.asp to b.asp so I can view it in c.asp by using Request.Querystring. Last edited by dan_the_man212 : February 11th, 2004 at 03:12 PM. |
|
#2
|
|||
|
|||
|
Usually what I do in this situation is make a function for your form and pass in the request.form collection. This way I only have to worry about maintaining the form in one area. In your case you could certainly use the querystring object. Make an include function in a shared file. This function should look something like this;
Code:
<%
Sub MakeForm(objValues)
%>
<form method="get" action="B.asp">
<input type="text" name="Name" value="<%= objValues("Name") %>">
Put more form inputs here
</form>
<%
End Sub
' call this function like this
makeForm request.querystring
%>
|
|
#3
|
|||
|
|||
|
For makeForm Request.Querystring, If I just write that will it call the entire contents?
Last edited by dan_the_man212 : February 11th, 2004 at 04:39 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Form help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|