Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Username Password CSS? HTML?

    I dont know what I do to get a username password box to work on my site. www.teamFminus.cjb.net Check it out, if anyone knows how to get a database for the info, itd be great

  • #2
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    CSS just makes the style of the page. I'm pretty sure you gotta do the password with javascript.


    Code:
    <!-- ONE STEP TO INSTALL PASSWORD PROMPT:
    
       1.  Put the designated coding into the BODY of your login HTML document  -->
    
    <!-- STEP ONE: Copy this code into the BODY of your login HTML document  -->
    
    <BODY>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    
    <!-- Begin
    var password = ''
    password=prompt('Please enter your password:','');
    if (password != null) {
    location.href= password + ".html";
    }
    // End -->
    </SCRIPT>
    
    <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:  0.58 KB  -->
    I found that. Try it.

  • #3
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Using Javascript as a way to log visitors in and out is very insecure. A server side language like PHP and using MYSQL as a database is far far more secure. There are loads of tutorials around on the internet to do this.

    ~Jamie.


  •  

    Posting Permissions

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