Back | Reverse | Quick Reply | Post Reply |

[ASK]How to do a login using php
Link | by ZZ on 2009-07-08 11:27:33
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 gendou on 2009-07-08 15:20:32 (edited 2009-07-08 15:20:37)
google found me this: http://www.talkphp.com/script-giveaway/1364-php-login-class.html


Re: [ASK]How to do a login using php
Link | by seraphna on 2009-07-09 06:33:23
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
Link | by seraphna on 2009-07-13 11:37:58 (edited 2009-07-13 11:43:33)
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

Back | Reverse | Quick Reply | Post Reply |

Copyright 2000-2026 Gendou | Terms of Use | Page loaded in 0.0009 seconds at 2026-03-09 23:34:01