Recommended: Asp querystring tutorial When you pass information from an HTML form, use the Get method to process the ASP page from the processing, you can retrieve information using the ASP QueryString collection. In the past lessons, we created tizagForm.html to send information tizagGet.asp to process. The following is the HTML code. form method=GET action=tizagGet.asp Name input type=text n
Change our HTML form
As we start creating a new ASP file, we want to change our tizagForm.html file to use the POST method and form to transfer data to different ASP pages. The following example provides the latest codename 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 postprocessor
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 data to collect information retrieved and requested objects. Therefore, the only difference between GET and POST processors is to replace all QueryString tables.
In the example below we have made the right changes and emphasized them in the red.
<%
Dim name, age
name = Request.Form(Name)
age = Request.Form(Age)
Response.Write(Name: & name & <br />)
Response.Write(Age: & age & <br />)
%>
Share: ASP Cookies Tutorial ASP Cookies tutorial uses to record user browsing and other information, but cookies can only save information to the client, but it is not safe. Many simple votings are used for cookies. The same ASP session, ASP technology cookies are used to store information to specific visitors on your website. This cookie is stored on the user's computer for how long it takes to extend. If the validity period you set is