GET表单

代码如下:

<!DOCTYPE html>

<html><br style="font-family:Verdana, Arial, Helvetica;" /> <body><br style="font-family:Verdana, Arial, Helvetica;" /> <form action="demo_reqquery.asp" method="get"><br style="font-family:Verdana, Arial, Helvetica;" /> Your name: <input type="text" name="fname" size="20" /><br style="font-family:Verdana, Arial, Helvetica;" /> <input type="submit" value="Submit" /><br style="font-family:Verdana, Arial, Helvetica;" /> </form><br style="font-family:Verdana, Arial, Helvetica;" /> <%<br /> dim fname<br /> fname=Request.QueryString("fname")<br /> If fname<>"" Then<br />       Response.Write("Hello " & fname & "!<br>")<br />       Response.Write("How are you today?")<br /> End If<br /> %><br style="font-family:Verdana, Arial, Helvetica;" /> </body><br style="font-family:Verdana, Arial, Helvetica;" />

</html>

运行结果:

相关文章