Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

actioning twice from one form!

Status
Not open for further replies.

Govnor

Technical User
Sep 3, 2002
55
GB
hi,

i would like to action two forms from my asp web page!
the form now is actioning only login_db.asp, i would like to action another asp page (at the same time) called associate.asp!

How can this be done!

Here is the Code---->
<%
If Request.Form(&quot;action&quot;) <> &quot;validate_login&quot; Then
%>
<form action=&quot;login_db.asp&quot; method=&quot;post&quot;>
<input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;validate_login&quot; />

<table border=&quot;0&quot;>
<tr>
<td align=&quot;right&quot;>Login:</td>
<td><input type=&quot;text&quot; name=&quot;login&quot; /></td>
</tr>
<tr>
<td align=&quot;right&quot;>Password:</td>
<td><input type=&quot;password&quot; name=&quot;password&quot; /></td>
</tr>
<tr>
<td align=&quot;right&quot;></TD>
<td><input type=&quot;submit&quot; VALUE=&quot;Login&quot; /></td>
</tr>
</table>
</form>
<%
Else
strSQL = &quot;SQL Statment is here!&quot;%>Then

<%response.Redirect &quot;associate.asp&quot;%>

<%
Else
%>
'Login Failed code is here!
<%
'Response.End
End If

' Clean Upcode is here!
End If
%>

Thanks
Manraj
 
I don't quite understand what you are trying to achieve. Why can't you perform all the relevant asp in just one page? Unfortunately you can't have two actions for one form, so i don't think you can do it that way.

Could you elaborate a bit more please? Nick (Web Developer)


nick@retrographics.co.uk
 
The easiest way would be to make a third page and have that be the action. In that third page, you you simply include the two other pages.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top