The majority of forums are now only available as archives, which means posting/editing is disabled.
The Anything and Everything forum is still open.
The Anything and Everything forum is still open.
Login Code
|
|||
|
Rank: ? (1)
Member #: 13615 |
I really need help, I have to create a website as my third year college project and i havent a clue. Could anyone tell me code for user log in. Im using Notepad in HTML, ASP and MS Access-help 8(
|
||
|
|||
|
|||
|
Rank: ? (4827)
Member #: 3416 |
that's a rather involved project . . . how much do you know about html, asp, and ms access?
my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
|
||
|
|||
|
|||
|
Rank: ? (1200)
Member #: 12930 |
I think there is a tutorial on login script in this site, Let me look for it ... ... ... ...
http://www.free2code.net/tutorials/programming/php/4/phplogin.php
So... How is life?
|
||
|
|||
|
|||
|
Rank: Unregistered
|
Very crude and simple login code... Let me know if you need any more complexity.
Note.. Since this is only for school it will do .. But if you plan to run this on an actual production site you need a LOT more to be secure. First off create an MS Access Database... Call it "myDB.mdb" for simpicity. Inside that DB .. Create a table called "tblUsers" Again.. You can rename this later but just for this, bare with me. In that table, go to "Design view". Create two fields... A "UserID" field and a "Password" field.. Make the "UserID" field as the primary Key. Both fields must be as "text" Now create a page called "login.asp" Code:
Now that's the end of the actual login page... Now you'll have to create a basic html page that will hold the actual login form.. I put my login in a table so everything arranges nicely... Here's the login.html file Code:
Now that should be all... If this doesn't run let me know.. Of course it may not right off the bat because I just typed it here :P So we'll see |
||
|
|||
|
|||
|
Rank: ? (115)
Member #: 4296 |
Oops.. That was me.. I took so long to type my session ran out lol
One thing... the <img stuff in there are just smilies.. I guess I shouldn't have used them there And the comments are not aligned properly... For some reason it didn't scroll horizontally 8(
_unixsucks dot com_
|
||
|
|||
|
|||
|
Rank: ? (117)
Member #: 7875 |
I would suggest PHP over ASP. Is one of the requirements that it be in ASP? The F2C PHP/MySQL user authentication script is actually really good.
_______________________
AIOFREAK
|
||
|
Please login or register to post a reply.
