User names and passwords
Moderators: Moderator, Global Moderator
User names and passwords
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]
[/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]
[/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]
User names and passwords
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]

[color=\"#41211C\"]It takes years to build up trust and only seconds to destroy it
[/color]
User names and passwords
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.
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
Thanks for the help <img src=\'http://www.killanet.net/forum3/public/s ... igwink.gif\' class=\'bbc_emoticon\' alt=\';)\' />
[align=center]
[/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]
[/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]
User names and passwords
[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]
[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.
[18:09:00] * ~Moppy stews ner0 erotically 1 times.
-
RuffRyders
- Hero Member

- Posts: 1138
- Joined: Mon Jun 14, 2004 7:47 am
User names and passwords
You 'could' use .htaccess if you wanted too also.
The bruises fade but memories are made.

