Page 1 of 1

User names and passwords

Posted: Sat Jul 24, 2004 3:53 pm
by to@ds
Ok, just a quick post, I was wondering if anyone knew how to set up a system for User Name and passwords and restricting access to certain pages on a web site. Im gonna check out some coding sites such as Spoono and the like. If anyone knows, or knows where I can find out, I would very much appreciate it. Thanks /bigwink.gif' class='bbc_emoticon' alt=';)' />

User names and passwords

Posted: Sat Jul 24, 2004 5:34 pm
by Tami
We have our own login system on Code Crypt, but the people who coded it aren't online at the moment. You can get other login systems [url="http://www.hotscripts.com/PHP/Scripts_and_Programs/User_Authentication/"]HERE[/url]

User names and passwords

Posted: Sat Jul 24, 2004 6:22 pm
by Trinity
There are many ways to do it in many different langauges, but by far the most popular today would have to be PHP. Spoono doesn't have a membership system or any membership tutorials. I suggest going to [url="http://www.hotscripts.com"]http://www.hotscripts.com[/url] for some php tutorials.

You will not be able to view the source of any of these membership systems, because they are on a server level, and all you can see is what is called the "front-end" or HTML.

User names and passwords

Posted: Sun Jul 25, 2004 9:06 pm
by to@ds
Thanks for the help /bigwink.gif' class='bbc_emoticon' alt=';)' />

User names and passwords

Posted: Mon Jul 26, 2004 2:42 am
by ner0
If you want somethin simple, you could use something like:
form page

Code: Select all

<form name="login" method="POST" action="login2.php">
    Enter your username: <input type="text" name="username"><br>
    Enter your password: <input type="password" name="password"><br>
     <input type="submit" value="Go!">
</form>
login2.php page

Code: Select all

<?php
   if (($_POST["username"] == "yourusername") and ($_POST["password"] == "yourpass"))
   {
            echo "Login successful";
    }
   else
    {
           echo "Access denied.";
     }
?>
just something simple, would work if you only needed one set of login details. If you need more, I suggest using a mySQL db.[/color]

User names and passwords

Posted: Mon Jul 26, 2004 3:45 am
by RuffRyders
You 'could' use .htaccess if you wanted too also.