ASP Request.from Tutorial

Source: Internet
Author: User
Tags html form

Change our HTML form
As we begin to create a new ASP file, we want to change our "tizagform.html" file using the Post method and form to transfer the data to different ASP pages. The following example provides the latest code for "Tizagform.html".

<form method= "POST" action= "tizagpost.asp" >
Name <input type= "text" name= "name"/>
Age <input type= "text" name= "age"/>
<input type= "Submit"/>
</form>

Create an ASP Post processor
Our new ASP file will be called "tizagpost.asp" and will be saved in the same directory "tizagform.html".

When the Post method is used to send the data retrieved by the information and the Request object Form collection. Therefore, the only difference between get and post processors is to replace all the QueryString tables.

In the following example we have made the correct changes and emphasized them in red.

<%
Dim name, age
Name = Request.Form ("name")
Age = Request.Form (' age ')
Response.Write ("Name:" & name & "<br/>")
Response.Write (' Age: ' & Age & ' <br/> ')
%>

Related Article

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.