Sunday, 17 February 2013

How to create a form request for POST method using asp


To create a form request you must maintain some procedure...Like...

1. Create HTML web form ("form.html") and write these tags
Tags:
<html>
<head>
<title>
Form
</title>
</head>
<body>
<form method="post" action="welcome.asp">
First Name: <input type="text" name="fname" value="">
Last Name: <input type="text" name="lname" value="">
<input type="submit" value="Submit">
</form>
</body>
</html>

2.Then create a "welcome.asp" page and write these tags
Tags:
<%
fname=Request.form("fname")
lname=Request.form("lname")
response.write("<p>Hello " & fname & " " & lname & "!</p>")
%>

Thanks for watching...Comment it...

1 comment: