Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Dec 13th, 2007, 10:11 PM   #1
kishou
Programmer
 
Join Date: May 2007
Posts: 52
Rep Power: 2 kishou is on a distinguished road
login system

ok im making a simple login. And im wondering how to make one besides using php. here's the code:
HTML file:
<html>
<head>
<title>
</title>
</head>
<body>
<form action="login.php" method="post">
Username: <input type="username" name="username" /><br/>
Password: <input type="password" name="password" /><br/>
<input type="submit" value="Login" />
</form>
</body>
</html>
PHP code:
<html>
<body>
<?php
if ($_POST["username"]&&$_POST["password"]=="admin")
echo "Login Successful";
else
echo "Username and password are incorrect. Please try again";
?>
</body>
</html>
kishou is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Php Login System MikeC PHP 17 Dec 17th, 2005 10:11 AM
PHP system commands ktsirig PHP 6 Oct 4th, 2005 1:24 AM
Why shouldn't we use System(); Shapeless C++ 7 Jul 19th, 2005 6:10 AM
how to login computers with same login and password Tiger Java 5 Jan 31st, 2005 7:53 PM
How to write a login system? uman C++ 2 Jan 13th, 2005 1:33 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:03 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC