PHP Tutorials: Register & Login: User registration (Part 3)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

YOUR THE BEST TEACHER I EVER SEARCH IN YOUTUBE...MORE BLESSINGS TO YOU AND TO YOUR FAMILY... THANK YOU SO MUCH FOR ALL TUTORIALS... YOU INSPIRED ME SO MUCH.. THANK YOU AGAIN

redgevergara
Автор

i'm a php beginner, but i cand see that you are making the decision for password lenth, with them encrypted ....
:))
even though you're making a great tutorial!


cristianiiacob
Автор

Great tutorials as always. Congrats and thank you.

jackrios
Автор

I freaking love you! You're saving my ass on a project right now.

brettc
Автор

@kwonzomatic you can "escape" this error by doing following code:
if(isset($_POST['submit'])

Basically you now are going to check if that post-variable is set.

KevinParijs
Автор

@daeheadshot Yes, however it's not about ease, it's more about protecting the database from user-generated errors. maxlength is a client-side "protection", so-to-speak. The MySQL limit is a minimum version of a server-side protection.

Hayate.Yoshida
Автор

I don't know how to thank you. Because you learned me php

RawaZz
Автор


as ninjafoxinteractive you could just write maxlength in the tag like this
input type='text' name=' before
input type='text' name='fullname' maxlength=25 after
save yourself time from writing a whole bunch of if statements >.>"

RandomThai
Автор

With just maxlength, you could use Firebug, or Google Chrome to bypass it.

PureMadnessProductions
Автор

Parse error: syntax error, unexpected '{'


what does this mean

Warstu
Автор

@TheLoLGameplays7312

I had the same problem, it means there is an else where there shouldn't be an else. Usually a { bracket is the problem. So if you've done

if() {
if(){
} else {
if() {
}

}else

You need to remove the bracket just after the else as you see there's 4 bracket's opening the statement and only 3 closing them. You need an equal amount.

zrowlandjones
Автор

Hey Alex. How's it going? I got just a question for you... When I define my $submit variable by the the assignment of the value $_POST['submit'], undefined index comes up! :| I'd decided to escape that error by adding @ at the beggining of the sentence.

tutorialesnet
Автор

I think it will check the length before it gets encrypted, not sure though

TheSurvivor
Автор

I discovered a mistake, maybe you guys already have said it or what ever but, if you md5 encrypt your password it's ALWAYS longer then 6 characters... so you have to md5 encrypts is ever the check if it's to long! anyways sorry for my english

kevintipker
Автор

you can use "now()" rather than using $date = date("Y-m-d");

elvisniperx
Автор

Yeah well Its ok. I learned MySql and hooked it up to a database and made an insert script so I have a fully functional Register and login :P I just have to tweak a few things though.

Acceptable
Автор

because you still can send data to the php script, by just editing the html code with fiebug or chrome website debugger...

andea
Автор

@oiejaune Also that's a client-side validation. Never use just client-side validation. I horrible practice to do so. Client-side validation practices are meant only for the user's convenience, nothing more.

PureMadnessProductions
Автор

Just realized on every single login and register tutorial everybody keeps posting the same problem.

If you get Undefined variable, be sure to put "@" beside the variable
example
@$fullname =

VigilianceAurelious
Автор

Is there a reason to check for user/pass length other than protect from someone entering extremely long data.
You could do something like this:
if(strlen(implode("", $_POST))>200)

Otherwise the things I hate the most is when I want to test a service and don't care about my account and I get errors with to short /to long/ or other things.

I really love your videos and it is pretty clear what you do.

nattsurfaren