web 2.0

How to used ASP & Multiple Hidden Field

How to used ASP &  Multiple Hidden Field This the tutorial/example a scripts how to use ASP & Multiple Hidden Field

ShotDev Focus:
- ASP & Multiple Hidden Field

Example

asp_multiple_hidden1.asp


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form action="asp_multiple_hidden2.asp" method="post" name="form1">
<input type="hidden" name="hdnSiteName" value="ShotDev.Com">
<input type="hidden" name="hdnSiteName" value="Hotmail.Com">
<input type="hidden" name="hdnSiteName" value="Google.Com">
<input name="btnSubmit" type="submit" value="Submit">
</form>
</body>
</html>

asp_multiple_hidden2.asp


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim i
i = 0
For Each txtVol in Request.Form("hdnSiteName")
Response.write "hdnSiteName " & i & " = " & txtVol & "<br>"
i = i + 1
Next
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_multiple_hidden1.asp

Screenshot

ASP & Multiple Hidden Field

ASP & Multiple Hidden Field
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.