' Note that the ASP VBScript is running before the html is read ' Variable should be declared before they are called ' ONCE THE PAGE RESPONDS TO THE CLIENT, THE IF FUNCTION IS INTERPRETED BY THE COMPUTER FIRST.
TRY READING THE SCRIPT CODE FIRST BEFORE ENTERING YOUR NAME.
Suggestion: Try reading the code before submitting for learning purposes.
◊⊡◊⊡◊⊡◊⊡◊⊡◊⊡
<% @LANGUAGE = VBScript %>
<%
' Note that the ASP VBScript is running before the html is read
' Variable should be declared before they are called
Response.Expires = 0
Dim try, strFirstName
If Request.ServerVariables("Content_Length") < > 0 Then
try = Trim(Request.QueryString("try"))
strFirstName = Trim(Request.Form("firstname"))
%>
Elements <html>, <head>, not annotated here but do preceed the following:
First Name: <%= strFirstName %>
Query String: <%= try %>
The Query String is written in the Form Action attribute.
So, the Server' Response is a <%= try %>.
</body>
</html>
<:%
Else
%>
◊⊡◊⊡◊⊡◊⊡◊⊡◊⊡