ASP pages in a number of forms submitted
Sometimes we need to do website will be more than the unilateral form in the same pages dealing with the procedures page form how we know that the form was submitted and dealt with accordingly?
Here is an example:
''''''''''''''''''''' Form.asp
<% @ LANGUAGE = "VBSCRIPT" CODEPAGE = "936"%>
<script Language="vbscript" runat="server">
Sub chuli ()
If request.QueryString ( "formid") = 1 then
Response.Write (request.Form ( "textfield"))
Elseif request.QueryString ( "formid") = 2 then
Response.Write (request.Form ( "textfield2"))
End if
End sub
</ Script>
<html> <head> <title> Form of a number of pages submitted </ title> </ head>
<body>
<table Width="300" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> <form Name="form1" method="post" action="form.asp?formid=1">
<input Type="text" name="textfield">
<input Type="submit" name="Submit" value="æäº¤">
</ Form> </ td>
</ Tr>
<tr>
<td> </ Td>
</ Tr>
<tr>
<td> <form Name="form2" method="post" action="form1.asp?formid=2">
<input Type="text" name="textfield2">
<input Type="submit" name="Submit2" value="æäº¤">
</ Form> </ td>
</ Tr>
<tr>
<td> </ Td>
</ Tr>
<tr>
<td>
<%
Chuli 'call server process
%>
</ Td>
</ Tr>
</ Table>
</ Body>
</ Html>
Tags: ASP








0 Comments to “ASP pages in a number of forms submitted”
No Comments. Send your comment.
Leave a Reply
You must be logged in to post a comment.