Page 1 of 1

User names and passwords

Posted: Sat Jul 24, 2004 10: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: Sun Jul 25, 2004 12:34 am
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: Sun Jul 25, 2004 1:22 am
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: Mon Jul 26, 2004 4:06 am
by to@ds
Thanks for the help /bigwink.gif\' class=\'bbc_emoticon\' alt=\';)\' />

User names and passwords

Posted: Mon Jul 26, 2004 9:42 am
by ner0
[font=\"Courier\"][color=\"purple\"]If you want somethin simple, you could use something like:
[u]form page[/u][code]<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>[/code]
[u]login2.php page[/u][code]<?php
  if (($_POST["username"] == "yourusername") and ($_POST["password"] == "yourpass"))
  {
           echo "Login successful";
   }
  else
   {
          echo "Access denied.";
    }
?>[/code]

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][/font]

User names and passwords

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