| << F.9.0- Password Fields | AppendixF |
Sample Password Field
Our example Password01Form.htmsimply requests you to enter a password:
...
<BODY>
<H3>Password 01 Form</H3>
<FORM ACTION="Password01Response.asp"METHOD=GET>
<INPUT TYPE="PASSWORD"NAME="SecretWord">
<INPUT TYPE="SUBMIT"VALUE="Submit">
</FORM>
<H6>clue: Joseph Anthony Passalaqua</H6>
</BODY>
...
The response page Password01Response.asp then attemptsto verify this:
...
<BODY>
<H3>Password 01 Response</H3>
<%
Select Case Request.QueryString("SecretWord")
Case "Peterson&Pass"
Response.Write "You are in"
Case "JoePassAtTheMontreux"
Response.Write "You are in"
Case Else
Response.Write "Sorry, wrong PASSword"
End Select
%>
</BODY>
...
| The following is the result of entering Peterson&Pass on the form page. Note that the password is not encrypted as it is sent across the Internet: in fact you can read it in the URL. However, the browser did not echo the typing on the form page. Also note how the & is treated in the address bar:
|
|
| << F.9.0- Password Fields | AppendixF |

RSS


