Home  | Products | Downloads  | Order Now | Contact Us  
 Home
 Product
  HTML Password Lock
  Encrypt HTML Pro
 Download
 Register
 Contact
 Links

 

 

HTML Password Lock Frequently Asked Questions:

 

Login box design:

Can I transfer username and password as parameters to the protected file, so the visitor does not need to enter username and password manually?
I want to add a login box to my home page, how can I do this?

Can I transfer username and password as parameters to the protected file?

Yes. You can directly transfer username and password as parameters to the a protected page. In this way, your visitors do not need to enter password to access the protected content.

For single password mode, the syntax is:

http://www.yoursite.com/locked.html?mtpwd=XXX

The parameter must be "mtpwd".

For user/password mode, the syntax is:

http://www.yoursite.com/locked.html?mtusr=XXX&mtpwd=XXX

The parameters must be "mtusr" and "mtpwd".

I want to add a login box to my home page, how can I do this?

Besides using a template file to customize the login page style, you can also place a login box on another web page, such as your home page. When the visitor inputs the username and password in the login box, he will be redirected to the protected page.

The username and password can be transferred as URL parameters or cookies to a protected page.

When transfering as URL parameters, the username and password will display in the URL address, the URL string in the address bar may look like http://www.yoursite.com/locked.html?mtusr=XXX&mtpwd=XXX.

Whereas transfering as cookies, the transfered username and password will be hidden. But transfering as cookies only works for protection type "Session" and "Cookie", it does not work for "Page" protection type. The protection type can be selected in Step 3, where "Session" is the default option.

Single password mode (transfering password as cookie):

Online Example:

Example [Password is "mtopsoft"]
Password("mtopsoft"):

Source code of Single Password Mode login box:

Note: The name of the <input> filed must be "mtpwd", and you must change the value in the script this.location.href="example1.htm" to the address of your own protected file.

User/password mode: (transfering user and password as cookies)

Online Example:
Example [User: Jack,  Password: 123456]
Username("Jack"):
Password("123456")     

Source code of User/Password Mode login box:

Note: The name of the <input> filed must be "mtusr" and "mtpwd", and you must change the value in the script this.location.href="example2.htm" to the address of your own protected file.

Single password mode (transfering password as URL parameter):

Online Example:

Example [Password is "mtopsoft"]
Password("mtopsoft"):

Source code of Single Password Mode login box:

Note: The name of the <input> filed must be "mtpwd", and you must change the action value to the address of your own protected file.

User/password mode: (transfering user and password as URL parameters)

Online Example:
Example [User: Jack,  Password: 123456]
Username("Jack"):
Password("123456")     

Source code of User/Password Mode login box:

Note: The name of the <input> filed must be "mtusr" and "mtpwd", and you must change the action value to the address of your own protected file.

 
Copyright © MTop Software Inc. 2002-2007. All rights reserved.