Request




Metodo GET
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
<!DOCTYPE html>
<html>
<body>
<form action="demo_reqquery.asp" method="get">
Your name: <input type="text" name="fname" size="20" />
<input type="submit" value="Submit" />
</form>
<%
dim fname
fname=Request.QueryString("fname")
If fname<>"" Then
Response.Write("Hello " & fname & "!<br>")
Response.Write("How are you today?")
End If
%>
</body>
</html>



Metodo POST
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
<! DOCTYPE html>
<html>
<body>
<form action = "demo_simpleform.asp" method = "post">
Il tuo nome: <input type = "text" name = "fname" size = "20" />
<input type = "submit" value = "Submit" />
</form>
<%
dim fname
fname = Request.Form ("fname")
If fname <> "" Allora
Response.Write ("Hello" & fname & "! < br> ")
Response.Write (" Come stai oggi? ")
End If
%>
</body>
</html>










( request.html )- by Paolo Puglisi - Modifica del 17/12/2023