Page

F.9.1- Sample Password Field

  by NT Community Manager.
Last Updated  by NT Community Manager.  

PublicCategorized as Appendix F.

Not tagged.
<< F.9.0- Password FieldsAppendixF

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:

 

AppendixF_image022.jpg

<< F.9.0- Password FieldsAppendixF

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |