Submission of multiple forms in one page in ASP

Source: Internet
Author: User
Sometimes we need to have multiple tables on the same page.
How does the program page that processes the form know that the form is submitted and processed 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>
<body>
<table width= "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= "Submission" value= "submitted" >
</form></td>
</tr>
<tr>
<td>&nbsp;</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= "submitted" >
</form></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<%
Chuli ' calls server-side procedures
%>
</td>
</tr>
</table>
</body>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.