User names and passwords

Get Help With All Aspects of Web Design & Design Software

Moderators: Moderator, Global Moderator

Post Reply
to@ds
Sr. Member
Sr. Member
Posts: 376
Joined: Thu Jun 17, 2004 12:37 am

User names and passwords

Post 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 <img src=\'http://www.killanet.net/forum3/public/s ... igwink.gif\' class=\'bbc_emoticon\' alt=\';)\' />
[align=center]Image[/align]

[align=center][color=\"#CC0000\"]"You may give a toad a wart, but a toad will never give you a wart"[/color][/align]

[align=center]eighty4toads.co.uk[/align]
Tami
Administrator
Administrator
Posts: 10892
Joined: Sun Apr 25, 2004 1:05 pm

User names and passwords

Post 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]
Image

[color=\"#41211C\"]It takes years to build up trust and only seconds to destroy it

[/color]
Trinity
Hero Member
Hero Member
Posts: 808
Joined: Wed May 05, 2004 9:19 am

User names and passwords

Post 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.
to@ds
Sr. Member
Sr. Member
Posts: 376
Joined: Thu Jun 17, 2004 12:37 am

User names and passwords

Post by to@ds »

Thanks for the help <img src=\'http://www.killanet.net/forum3/public/s ... igwink.gif\' class=\'bbc_emoticon\' alt=\';)\' />
[align=center]Image[/align]

[align=center][color=\"#CC0000\"]"You may give a toad a wart, but a toad will never give you a wart"[/color][/align]

[align=center]eighty4toads.co.uk[/align]
ner0
Hero Member
Hero Member
Posts: 982
Joined: Sat May 22, 2004 4:45 pm

User names and passwords

Post 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]
Last edited by ner0 on Mon Jul 26, 2004 9:44 am, edited 1 time in total.
[color=\"green\"]'class KPIM::ProcessManager' only defines private constructors and has no friends[/color] <- :( poor class



[18:09:00] * ~Moppy stews ner0 erotically 1 times.
RuffRyders
Hero Member
Hero Member
Posts: 1138
Joined: Mon Jun 14, 2004 7:47 am

User names and passwords

Post by RuffRyders »

You 'could' use .htaccess if you wanted too also.
The bruises fade but memories are made.
Post Reply

Return to “Web Design Principles”