Comment by oozecandy on February 26, 2010 at 6:51 pm
That’s the nice thing about php- in contrast to javascript, etc., it is executed server-side, i.e. you can’t just view the php source code in your browser- only what is echoed out.
Comment by bearmaxd on February 26, 2010 at 7:23 pm
you’re bum-bum-bum!!!! thanks!!!!!!!
Comment by Aut0Farmer on February 26, 2010 at 7:52 pm
Alex,
Awesome tutorials, thanks!!
To connect to the DB for user registration, I see that you’re including the DB login information in the PHP cod. I’m a php noobie, so I may be missing something, but if someone were to view the source of the php code, wouldn’t the db name, user, and password be comprimised?
Comment by fugazi0311 on February 26, 2010 at 8:47 pm
@TheGilsan Doesn’t matter if the password is already taken. Users are identified uniquely by their username, not their password.
Comment by fugazi0311 on February 26, 2010 at 8:51 pm
@utdfederation What most sites I see do is when the user registers they supply their email address. If they’ve forgotten their password they click a link to reset their password and enter their username and/or email. The password is reset to something random and is emailed to the user’s email address. Then the user can log in with the new password and reset the password to something new.
Comment by Zeld0 on February 26, 2010 at 9:45 pm
Hmm.. I have a problem!
Wen I login and write big caracters on the username, and I know i write the right password.
And then the login page says: “Wrong Password!”
:S
Comment by cullzilla on February 26, 2010 at 10:21 pm
Thank you so much Alex
You have really motivated me in learning php into details…lol.
I really appreciate it… keep on
Comment by MedicoreProductions on February 26, 2010 at 11:00 pm
I don’t think you can recover the pass, because it is encrypted. That’s the whole point.
Unless you brute force and break the code. I’m not sure how long that would take.
Comment by anup756 on February 26, 2010 at 11:26 pm
why is it giving this error??
” Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:xampphtdocsuserloginregister.php on line 3 “
Comment by blbennett8 on February 27, 2010 at 12:00 am
Anyone know why I’m getting the following error when I try to check for repeat usernames? Thanks in advance!
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
Comment by Yunalaska1234 on February 27, 2010 at 12:13 am
Thank you alex you save my life of failing my php class hahahaha thank you!!
Comment by pakalika on February 27, 2010 at 12:42 am
Thanks so much for these tutorials! I hit a couple of hurdles but I’ve got it working!
Comment by 89Miami on February 27, 2010 at 1:37 am
Where is username already teaken??????
Comment by RedOjin on February 27, 2010 at 2:04 am
100% thank you for the Tutorial.
Comment by koustavbhowmik on February 27, 2010 at 2:07 am
Thank u so much alex..i really need that stuff…see ya in the next part..lol
Comment by utdfederation on February 27, 2010 at 2:41 am
i know i’m asking a lot here buddy but also would you be able to show us how to do a script for the user to agree with terms and conditions before they can proceed?
Comment by utdfederation on February 27, 2010 at 2:51 am
Fantastic tutorial Alex.
Question can you show us how to do a username/password recovery please?
Comment by aspirinemaga on February 27, 2010 at 3:22 am
probably the best question i ever saw ! =)
Comment by SpinCentral on February 27, 2010 at 4:04 am
This was awesome! Thanks so much!
Comment by BruceSwissBoy on February 27, 2010 at 5:01 am
Hello Alex, thank you so much. I also have learn so much from your tutorials, all you effort is worthwhile and so very awesome.
Comment by TheGilsan on February 27, 2010 at 5:36 am
Hello Alex!!!! Thank you so much for you PHP tutorial. I lerned a lot about it..
i have a question.
What if, the password is already taken?
Comment by matrix001m on February 27, 2010 at 6:02 am
Hiii Alex , i would like to say one thing to u
thankssssss..
before some days i have some problem in my login and register script .. but your script help me to out of this problem ..
Comment by shah262 on February 27, 2010 at 6:09 am
Hi Alex good tutorial. but if you use a check availability button or link next to the user text box to check if it’s exist in the data base and show the error on the same page. so will not need to type in all the four fields.
Anyway the logic is simple and clear.
Comment by italoven on February 27, 2010 at 6:28 am
I’m learning a lot from your videos men, thanks
Comment by vaispatu2006 on February 27, 2010 at 6:42 am
Special Thanks to you all the way from the Island of Samoa. I really enjoy watching all of your tutorials. I do C and C++….but this time, I am going to learn PHP to the max. Thank you once again.
About this blog
This blog is dedicated to showcasing great web design as well as providing advice and tips to any aspiring web designers out there. Hopefully these articles will aid you in your design and development.
25 comments
Comment by oozecandy on February 26, 2010 at 6:51 pm
That’s the nice thing about php- in contrast to javascript, etc., it is executed server-side, i.e. you can’t just view the php source code in your browser- only what is echoed out.
Comment by bearmaxd on February 26, 2010 at 7:23 pm
you’re bum-bum-bum!!!! thanks!!!!!!!
Comment by Aut0Farmer on February 26, 2010 at 7:52 pm
Alex,
Awesome tutorials, thanks!!
To connect to the DB for user registration, I see that you’re including the DB login information in the PHP cod. I’m a php noobie, so I may be missing something, but if someone were to view the source of the php code, wouldn’t the db name, user, and password be comprimised?
Comment by fugazi0311 on February 26, 2010 at 8:47 pm
@TheGilsan Doesn’t matter if the password is already taken. Users are identified uniquely by their username, not their password.
Comment by fugazi0311 on February 26, 2010 at 8:51 pm
@utdfederation What most sites I see do is when the user registers they supply their email address. If they’ve forgotten their password they click a link to reset their password and enter their username and/or email. The password is reset to something random and is emailed to the user’s email address. Then the user can log in with the new password and reset the password to something new.
Comment by Zeld0 on February 26, 2010 at 9:45 pm
Hmm.. I have a problem!
Wen I login and write big caracters on the username, and I know i write the right password.
And then the login page says: “Wrong Password!”
:S
Comment by cullzilla on February 26, 2010 at 10:21 pm
Thank you so much Alex
You have really motivated me in learning php into details…lol.
I really appreciate it… keep on
Comment by MedicoreProductions on February 26, 2010 at 11:00 pm
I don’t think you can recover the pass, because it is encrypted. That’s the whole point.
Unless you brute force and break the code. I’m not sure how long that would take.
Comment by anup756 on February 26, 2010 at 11:26 pm
why is it giving this error??
” Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:xampphtdocsuserloginregister.php on line 3 “
Comment by blbennett8 on February 27, 2010 at 12:00 am
Anyone know why I’m getting the following error when I try to check for repeat usernames? Thanks in advance!
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
Comment by Yunalaska1234 on February 27, 2010 at 12:13 am
Thank you alex you save my life of failing my php class hahahaha thank you!!
Comment by pakalika on February 27, 2010 at 12:42 am
Thanks so much for these tutorials! I hit a couple of hurdles but I’ve got it working!
Comment by 89Miami on February 27, 2010 at 1:37 am
Where is username already teaken??????
Comment by RedOjin on February 27, 2010 at 2:04 am
100% thank you for the Tutorial.
Comment by koustavbhowmik on February 27, 2010 at 2:07 am
Thank u so much alex..i really need that stuff…see ya in the next part..lol
Comment by utdfederation on February 27, 2010 at 2:41 am
i know i’m asking a lot here buddy but also would you be able to show us how to do a script for the user to agree with terms and conditions before they can proceed?
Comment by utdfederation on February 27, 2010 at 2:51 am
Fantastic tutorial Alex.
Question can you show us how to do a username/password recovery please?
Comment by aspirinemaga on February 27, 2010 at 3:22 am
probably the best question i ever saw ! =)
Comment by SpinCentral on February 27, 2010 at 4:04 am
This was awesome! Thanks so much!
Comment by BruceSwissBoy on February 27, 2010 at 5:01 am
Hello Alex, thank you so much. I also have learn so much from your tutorials, all you effort is worthwhile and so very awesome.
Comment by TheGilsan on February 27, 2010 at 5:36 am
Hello Alex!!!! Thank you so much for you PHP tutorial. I lerned a lot about it..
i have a question.
What if, the password is already taken?
Comment by matrix001m on February 27, 2010 at 6:02 am
Hiii Alex , i would like to say one thing to u
thankssssss..
before some days i have some problem in my login and register script .. but your script help me to out of this problem ..
Comment by shah262 on February 27, 2010 at 6:09 am
Hi Alex good tutorial. but if you use a check availability button or link next to the user text box to check if it’s exist in the data base and show the error on the same page. so will not need to type in all the four fields.
Anyway the logic is simple and clear.
Comment by italoven on February 27, 2010 at 6:28 am
I’m learning a lot from your videos men, thanks
Comment by vaispatu2006 on February 27, 2010 at 6:42 am
Special Thanks to you all the way from the Island of Samoa. I really enjoy watching all of your tutorials. I do C and C++….but this time, I am going to learn PHP to the max. Thank you once again.