dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: question about login form script‏

  1. #1
    Join Date
    Aug 2011
    Posts
    2

    question about login form script‏

    Hi,
    I downloaded a script and installed this script on my webiste to work as a login form. The idea is enable to make it work as a login form an eliminate the popup form that appears when login into httaccess.
    I created my password protected directory with cpanel.

    I cannot make it work.
    I would apprecieate some ideas please.
    Thank you very much!
    Dan

    Link to the login form: http://www.percussionmagazine.com/login.htm


    SCRIPT HERE:

    <SCRIPT LANGUAGE="JavaScript">

    <!-- Based on FTP log in by: Reinout Verkerk -->
    <!-- Original: Gordon Hudson (sales@hostroute.com) -->
    <!-- Web Site: http://www.hostroute.com/ -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <!-- Begin
    function Login(form) {
    var username = form.username.value;
    var password = form.password.value;
    var server = form.server.value;
    if (username && password && server) {
    var htsite = "http://" + username + ":" + password + "@" + server;
    window.location = htsite;
    }
    else {
    alert("Please enter your username and password.");
    }
    }
    // End -->
    </script>

    </HEAD>
    </head>

    <body><br>
    <BODY>

    <!-- The hidden form field "server" needs to be the
    address of your password protected directory. -->

    <form action="" name=login>
    <input type="hidden" name="www.percussionmagazine.com/download/download.htm" value="www.percussionmagazine.com/secure/">
    Username:
    <input type=text name=username size=20>
    <br><br>
    Password:
    <input type=password name=password size=20>
    <input type=submit value="Login!" onClick="Login(this.form)" name="button">
    </form>

    <p><center>
    <font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
    by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
    </center><p>

    <!-- Script Size: 1.58 KB -->
    </body>
    </html>

  2. #2
    Join Date
    May 2011
    Posts
    194

    script and html and client

    Hi,

    standard javascript have no security properties.
    javascript works only on client. html too.

    during execute of javascript browser need code without encryption (clear code).
    At this moment you can see code and scripts with devoloper tool of browser f.e. debugger.

    compare password only with php etc. on server.
    to get password string use f.e. javascript.
    to get password with serurity use f.e. https protocoll.
    httpRequest maybe useable for data transfer.

  3. #3
    Join Date
    Aug 2011
    Posts
    2
    Hi, I apreiate your help.
    But dont understand what to do.
    Any other help please.

    I adjusted the code:

    <SCRIPT LANGUAGE="JavaScript">

    function Login(form) {
    var username = form.username.value;
    var password = form.password.value;
    var server = form.server.value;
    if (username && password && server) {
    var htsite = "http://" + username + ":" + password + "@" + server;
    window.location = htsite;
    }
    else {
    alert("Please enter your username and password.");
    }
    }
    </script>

    </HEAD>
    </head>

    <body><br>
    <BODY>

    <form action="" name=login>
    <input type="hidden" name="www.percussionmagazine.com/download/download.htm" value="www.percussionmagazine.com/secure/">
    Username:
    <input type=text name=username size=20>
    <br><br>
    Password:
    <input type=password name=password size=20>
    <input type=submit value="Login!" onClick="Login(this.form)" name="button">
    </form>

    <p><center>
    </center><p>

    </body>
    </html>

  4. #4
    Join Date
    Aug 2011
    Posts
    2
    i want to activate java script

  5. #5
    Join Date
    Aug 2011
    Posts
    2
    i want to activate javascript please help me i cant get on my verizonwebmail,until i get java script.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles