|
[ASK]How to do a login using php
|
| i want to ask, what is the code for doing the submission by using php?? |
|
Re: [ASK]How to do a login using php
Link |
by
|
google found me this: http://www.talkphp.com/script-giveaway/1364-php-login-class.html
|
|
Re: [ASK]How to do a login using php
|
|
Logic Wise, you want the script to check a username, match password. If the password doesn't match then fail login and return to the login with an error message else if matched then accept login start session. :) Yes, I just did an if-then-else statement with embellishment. |
|
Re: [ASK]How to do a login using php
Link |
by Dranosi_Drakatsura
on 2009-07-12 03:56:19 (edited 2009-07-12 03:56:58)
|
|
ok, am gonna give u a basic understanding of it, not like the dude above... u need a data-base; to hold Password, and User. Then get a source code to link it to ur PhP main code page. then u need to make a another ["insert name".Php], put code in, to verify that it is getting it from the rigth data-base. Well i cant be bother going into details, so basicly, it take like 3 file of code "1 for main page> this will link the database to it, another for setting up a database, to host server, 3rd will be to shown if it a wrong login, > turn to fail page, or to login to the main 1", to make it. If u r learning it for fun, stick to Html, php is not for nub... by, Dranosi |
|
Re: [ASK]How to do a login using php
|
|
Yeah, because that was by any means basic or direct, or grasping an actual usage of PHP or content feedback. All you really did was tell him to link files (not actually necessary) and use a DB Connect script (which can be done on the page in question). I gave the logic behind the code, Gendou already gave a rather decent guide to follow to get the script done. I found this guide as well. If you follow this step by step, you'll have a login page at the end and probably learn to do it for yourself as you go along: About.com Guide |