Welcome Guest ( Log In | Register)



6 Pages V  < 1 2 3 4 > »   
Reply to this topicStart new topic
> Complete Login System, With PHP + MYSQL
xJedix
post Dec 2 2005, 02:51 AM
Post #11


Premium Member
********

Group: Members
Posts: 183
Joined: 27-June 05
From: Minnesota
Member No.: 8,734



Very nice tutorial and setup for a login system. I have my own I have used in the past as a clan site. You have given me many ideas to try that will majorly improve my site. I like your secure md5 passes, thats a great idea especially for something like a clan site. I am going to have to incorperate that into my site. Also, I haven't liked functions that much but it makes everything much simplilar and gives you a lot of freedom by using them. I will have to give them a try in the future.

I got one question.....
for this line in admin.php:
CODE
print "<tr><td align=\"center\" colspan=\"7\"><font color=\"#FFFFFF\" size=\"2\"><b>Sorry, there is no members registered.</b></font></td></tr>\n";


You can just have this line like this and still work:
CODE
print "<tr><td align=center colspan=7\><font color=#FFFFFF size=2><b>Sorry, there is no members registered.</b></font></td></tr>\n";

Is it wrong to do it that way? or does problems occur by doing this?

Also, is this code changed to php5? Because I remember being told that " should be ' in the php sections of the code for the new versions of php.


Thanks for the tutorial, and if someone could answer my questions.... that would be great smile.gif

xJedix

Notice from jlhaslip:
Edit to repair bbcode as per report.



This post has been edited by jlhaslip: Dec 2 2005, 03:01 AM
Go to the top of the page
 
+Quote Post
Plenoptic
post Dec 21 2005, 11:59 PM
Post #12


Trap Double Mocha Member
***************

Group: [HOSTED]
Posts: 2,224
Joined: 5-November 05
From: That one place over there...
Member No.: 13,830



Well that's cool. Does it remember that the person is logged in or whatever? Like does it show that they are logged in on the site? Like say I log in and go to a different link on the forum. Will it say in a corner Logged In as Plenoptic? If so that's really cool. Nice tutorial
Go to the top of the page
 
+Quote Post
HmmZ
post Dec 22 2005, 12:38 AM
Post #13


Super Member
*********

Group: Members
Posts: 362
Joined: 2-March 05
From: The Netherlands
Member No.: 4,097



@Karlo
It's avoiding the superglobals, wich are by default switched off in PHP4 and PHP5, but in my honest opinion i dont think falgor took that in his decision when using variables right away.
Note that i dont know wich phpversion() trap17 has at the moment, so if they are still using cPanels default (PHP3) then you can use $_POST[] and $_GET[].

@xJedix
You dont have to necessarily use quotes, in the end it can really speed up a script. however, it is one of the necessary functions when you want it just to be a LITTLE html validated, im not sure but it can be that some browsers can cause display errors when using no quotes, but dont hook me on that.
Go to the top of the page
 
+Quote Post
Hiaito
post Dec 22 2005, 02:09 AM
Post #14


Premium Member
********

Group: Members
Posts: 167
Joined: 1-October 05
Member No.: 12,407



I wonder if you could run that off in PHPmyCHAT.
Go to the top of the page
 
+Quote Post
Dooga
post Dec 22 2005, 04:44 AM
Post #15


Moderator
Group Icon

Group: [MODERATOR]
Posts: 1,336
Joined: 26-December 04
From: Canada
Member No.: 2,940



Thanks! I was searching for such a script in hotscripts.com for a long time! Maybe you could even submit the script...
Go to the top of the page
 
+Quote Post
bigfatme2000
post Dec 22 2005, 08:46 AM
Post #16


Newbie [Level 2]
**

Group: Members
Posts: 34
Joined: 28-October 05
Member No.: 13,491



QUOTE(Dooga @ Dec 22 2005, 04:44 AM)
Thanks! I was searching for such a script in hotscripts.com for a long time! Maybe you could even submit the script...
*



Yeah - thanks very very very much - This is well needed, and will go to great use on the next version of my website - thanks! smile.gif
Go to the top of the page
 
+Quote Post
sammaye
post Dec 22 2005, 11:53 AM
Post #17


Member [Level 2]
*****

Group: Members
Posts: 87
Joined: 12-March 05
From: somewhere in the UK...if only I knew
Member No.: 4,419



hmm klind of strange to miss out conn.php its like a vital part of the login system. I am wondering whether this person actually coded it him self or stole it from some one else cos if he coded it him self he woluld not have left out conn.php. Just a thought thats all.

Yeah good script for beginners could have doen without the errors cos I got conn.php errors too sad.gif. good base for a login script thou, at least now I wont forget any of the code requiired...
Go to the top of the page
 
+Quote Post
sxyloverboy
post Dec 23 2005, 07:47 PM
Post #18


Super Member
*********

Group: Members
Posts: 302
Joined: 17-June 05
From: Frankfurt, Germany
Member No.: 8,358



someone this dosent work for me. has anybody actualy tried this thing out and gotten it to work? someone other than the guy who posted it?
Go to the top of the page
 
+Quote Post
bucksta
post Jan 4 2006, 12:17 AM
Post #19


Advanced Member
*******

Group: Members
Posts: 127
Joined: 6-December 05
Member No.: 15,438



i know lots of php login systems. i tried this one. pretty decent...