| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Very Very Simple login script This is a very simple login script. The Form Code: <html> <body> <form name="form" method="post" action="login.php"> Username: <br> <input type="text" title="Username" name="Username"><br> Password: <br> <input type="password" title="Password" name="Password"><br> <input type="submit" name="Submit" value="Login"> </form> </body> </html> PHP Code:
Last edited by SecondVersion; 08-07-2005 at 12:41 AM.
Reason: Forgot Something
|
| |
| | #7 (permalink) |
| Senior Member Join Date: May 2005 Location: I'm right here
Posts: 3,526
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Indeed, very simple.. ![]() Thanks for writing!
__________________ WP Theme Developer Your One-stop for Premium Magazine/CMS WordPress Themes Deluxe Themes |
| |
| | #8 (permalink) |
| NamePros Regular Join Date: Aug 2005
Posts: 727
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | This really works!
__________________ :laugh:...::::Pakisp.net::::...-The Entertainment Pack Pakisp.net :wave: Free Web Directory |
| |
| | #9 (permalink) |
| Pro Coder & Designer Join Date: Apr 2005 Location: Netherlands
Posts: 967
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | its simple. havent tried it yet. but howd you secure the members area ?
__________________ aween web development |
| |
| | #11 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: Florida
Posts: 233
![]() | This method only has one user id and pw, rather than individual ones for each member. Since it's not very secure, why not simply use a secure folder, created from your control panel or .htaccess?
__________________ www.headlinercreative.com |
| |
| | #13 (permalink) | ||||
| Professional Monkey Join Date: Jul 2005 Location: Escaped from the zoo
Posts: 907
![]() ![]() |
what forum software are you using?
__________________ Webmaster Words | ||||
| |
| | #15 (permalink) | ||||
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft | ||||
| |
| | #16 (permalink) |
| Web Marketing Specialist Join Date: Oct 2003 Location: Texas, USA
Posts: 1,335
![]() ![]() ![]() | Code: <?
$user1 = "user1";
$pass1 = "pass1";
$user2 = "user2";
$pass2 = "pass2";
if ($user == $user1&&$pw == $pass1)
{
header("Location: http://website.com/area/user1");
}
if ($user == $user2&&$pw == $pass2)
{
header("Location: http://website.com/area/user2");
}
else
{
print("Wrong username or password. Please try again.");
}
?> |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 60.000 Templates, scripts, fonts, banners etc. $9.95 | atkims | Web Development Wanted | 19 | 11-16-2004 10:48 AM |
| Simple PHP login Script | iDeviseFlash | Programming | 17 | 07-08-2004 10:01 AM |