Hello, friend, welcome back.
In a previous video, we successfully lowered our tour of this farm that is our user farm and also there
is another farm I have loaded with another field as a Facebook idea and a profile picture.
So now I have to do I want to submit this form so it will be submitted that between this user will put
that username, password, email field, Facebook, I.D. and the tools, the profile picture, and after
that is to be registered.
So here then this registered data will be saved in our database.
And also I want to do a lot of different sort of validation when this latest register will be completed,
then I want to do and display some of the message.
OK, so here I want to display some of the messages to successfully register.
And if you want to register it again, then you have to do we have to go to that register page.
That is the home page.
And after that home page, you have to come to our state database.
Then our again, besides, the form will be loaded.
OK, so how can we find this type of validation?
I also want to show you that things with the live example.
So for doing this, we have to do we have to work in our view base.
So there is a basis to email.
We don't need this.
That is you are also you don't need this that the register seemed to register here.
You consider the cloud to form.
So now I have to define two of these form data and we have to insert it with our database.
So that is our form.
That is our model.
So right now we don't need this, but I just take it so there is a clear view.
So now we have to do we have to work in our view area.
So here, as I told you, I also want to define some of the validation.
When this register will be successfully created, then it should be rejected over this same page with
some of the notification so far, the results here in our register, that means in our register, functionally,
we have to work.
So here I want to do, I want to do and first of all, take one of the variables as a register start.
So into the registered area.
First of all, I want to make the things as a false OK.
I just make the things as a false fast.
And after that I want to do and define on the condition as if condition and in the condition I have
to pass out this post.
All that from that I right.
So you the register.
I have powers that as a post method.
So here we have to pass it.
So as I told you before, this will be just like that same condition.
So here we have to pass that things with the request and then method.
Right.
So this request method, first of all, it will be check is matter or not.
I just simply defined that post.
Right.
And then our tool of this form.
So I have already found out of this form.
One will be as a user form data.
So here I have defined two of this.
One will be as a user form and that user info form.
So now I just simply defining it.
I just copied and here I take as a user form and the user form idea, we have to define our import model.
So that is our user form.
Right.
So here I have to pass it.
So before we have defined as a request, as a post, that means the request and then post.
So friend, before we just simply whatever the data will get, then we just simply pass it.
Right.
So now I want to do want to actually, first of all, take this data temporarily.
So for taking this data, I want to do to define here one of the variable as a data.
Sorry, I just take one of the variable of the data.
So so whatever the request, I pass from one register, OK, whatever the request I pass from what register
from our user form.
First of all, I don't want to actually take this data.
So here I want to hold this data and take the things with this data variable.
So here I simply defining it.
And also we have to do we have to do the same things.
We have to do the same things for our another one.
So here I have to define our another one.
So I have another one as a user info form.
So they simply defined the user in full form and then our model as a user in full form.
And then also I want to hold this data with this request posted data that means whatever the polls you
get, you should be holding this data into this data area.
I hope you can well understand about it.
And now we have to do we have to validate it.
Right.
So now we have to validate it.
So after that, I had to find out the condition, our way and our user form.
That means that user form is valid or not so is underscored valid.
So I just simply defined as a valid and also to have another one for the reasons we have to also define
as and our another one as a user in full form because they have the to form right before.
I have already discussed about only one form data.
But right now they have the two form data.
You can see that the two forms, that one is the user form and that is that user info form.
So that the two forms of the business here, I define our validation as a user form is valid and our
another user info form is valid or not.
That is simply defined as the ease underscore valid say also defined that as is valid or not.
Now I want to do and to save it.
So after that I want to save that to our user and then our user from the user underscore form into the
user form that I want to save.
So I just simply save it.
And also here we have to do have to pass that are faster.
So for the password, I have defined that user and with this user I want to define our password.
That means whatever the password you will put on particular that position, as I told you, it should
be created on the encrypted password.
Right.
Suffocating this encrypted password.
I have also another function.
So you have to define, as I said, underscore password.
Right.
So here you have to define the password.
Our this user sorry, our user, this password field site to simply define our passwords on this password
will be saved before say it will be changed that password and after that it will be safe again.
So to simply defend this user will be saved.
Is that again OK.
So here I have defined our three of these fields.
So with this condition, I have to say about three of this field.
One is our username and passport, password field and email address field.
And also they have then added to this field as a Facebook idea and the profile picture.
Right.
Also, we have to define it so here after that.
So that is our one part.
That means here, as I told you, I have defined two of this field.
One is one of the form as our user form data, and that is our user information form data.
Right.
So I have already declared our user forms.
So now we have to also define our user form data entry into the user from that area.
I have already defined our tour of this field.
You can see into the user for media have defined the Facebook and the profile picture.
So now also we have to defining it.
So after this after this year, I define as user on the screen for so I just simply defined as user
info.
And here our form name I have defined, I have defined that our form name will be as a user input form.
So now with this user info form I want to do and to save this data, I just simply save it.
So before we actually parse the data with the comet, right.
With this comet, with this comet, we pass that things as a true right.
So right now to the end to make the things as a whole because of all they have the also on the field,
I have to declare I have another field error as a profile picture.
Right.
Also, we have to add it.
So for the reasons here, I want to do in particular that area and to make the things as a false.
So I just make that things as a false.
And after that, here also we have to define with our user info.
So with all this user info here, we have to define our user.
That means our user model.
So that is already user model, every user.
And then I want to do and to compare it with our our if you go here into this model area, I have already
defined our one of the model as a one to one field model with our user on Delek as a model.
Kaskade Right.
So I just take that part.
That means when this user will be elected, this user related, all that should be elected for the reasons
here I take the things with this our variable.
That means here I have already defined that things in our U.S. class.
So now we have to also add it.
So here in particular, that position, I just simply added, OK, and then also over another field,
I have so I have another field as a profile picture.
So we have two also defining it.
So after that I just simply define the if condition and in the if area, I just simply define our filename,
our field as a profile piece.
So here I just simply defending the in request.
So if you want to parse that actually image, then you have to define like the.
So you have to pass it into their profile picture in the and then files.
OK, then you have to pass it.
So they rejected the common things.
If you actually inhabited it with this, then you can well understand about it, because every time
you have to use the same logic.
So I just simply defined as the inadequacy and the files and then I just simply define our user.
Sorry.
So with this user info, so with this user info, obviously I have already passed our Elderfield on
here, so now I have to go pass it again.
I want to pass our picture.
So if you want to it that the user info into the user info, I define that our filename as a profile.
OK, profile picture, and then with this request, I requested our all the file request data, that
means here we have to define that file.
So I just simply defending the files and our field, our field is file as a profile piece.
So I just simply defined the profile piece.
And now after that I want to do and to save this data.
So here I want to save this data.
So that is our user info.
So here before I have already saved this data and I just make the things committers, it falls right
now that is our user enforcer with this user info I want to do.
I want to save this data.
So now I just simply save it through e-mail.
It is hard for you.
Don't worry, I will explain it again, then it'll be very much clear to.
And also after that.
After that.
Before first of all, when this request will be studied, I make that I as a false right now I successfully
complete our this part.
That means here our forecast from Data Center is far from data.
I save it, so do the files from the top that have that reveal username, password and the email address.
So I just simply defined that condition into the if condition.
I have simply defined our all that field on here, only I changed it in our password feed into the password,
feel I change it and make that our password as a and password for the reasons here.
I defined the function as I said, password.
Right.
So that is actually what I want from data.
And this one actually for another data that means our another field.
I have already defined our another field as a Facebook idea and the profile picture.
Right.
So you can see I defined as a user in force with this user info, I save this data.
And first of all, I committed because of all, I have also another field.
I have another field as a profile picture.
And then I just simply defined that our profile picture in particular, that area.
So that is our profile picture.
If you want to pass on the images into the request area, then you have to pass it with the profile
picture in request and then files.
OK, and then I just simply define our request for that file.
That means that image is requested file.
I simply pass that request and then I just save our this user information data that this user data,
I just simply save it.
And also here I define the condition that see in our user profile, as I told you before here I have
defined on the condition as a model B as a cascade and cascade.
So that means when this user will be deflected automatically, D related, this user related, all that
Facebook, Eurail, and also that image that in the profile will be selected.
Right.
So for the resource here, friend, I have defined this part.
That means here that is Iglauer all the user details.
And also I define that this user to have the order feel to have one of that is a Facebook.
You also here there is a Facebook.
You also, for the reasons here, are defined with this user in for our this user, that means this
user.
So here I have defined that our user data user form that I can see just from that, I just take the
things with the save data.
So for the reasons here, I defined this user equal to our user and this user means in our model our
user.
OK, I hope it should be now very much clear to you.
So that is user.
That means our user that the form data, all that user.
And here I committed it without this user model or this user.
OK, so for the results were in this data, that means who in this our user will be elected, this user
related, all that our Facebook users and also the profile image will be elected.
And after that I want to do and to actually save it.
So now I think every line is very much clear to you.
So now you have to actually practice it.
I think you already know about every line how that things exactly work so different before.
First of all, when the sequences started, I just make that register as a false.
So now we have to do we have to make the things as a true.
OK, so here after this, after this, I just simply defined this to this chart.
This disaster will be as a true I just name it as a true.
So now it will be the true.
And after that that is our another form step.
And see this.
If we didn't get any data, then it will be actually load our D forms of what results here we have to
do.
We have to define the LS condition.
So here after this, after this in particular that area I define as ls.
OK, I just simply defended the ILS Elseworlds will be lowered this part, that means they should be
lowered our this user from data and that is our user form.
So I is simply loaded on here.
Let me see what else area it should be loaded better.
I just simply defining it on here.
OK, so that means ale's it shall be lowered our OMT form.
So that is our data.
And then this Gianetti into the dictionary area.
I have to do I have to pass it seemed the dictionary area.
I want to pass our user form then these are our user info form.
And now also we have to pass our state through data.
So that is actually not registered.
So we have to now pass it.
So here I am.
After that I just simply pass our D registered data, say, to simply pass it.
So now we have to do we have to add this registered in our register e-mail.
That means here.
So here after this, after this I want to do the final, not the if condition fast, because as I told
you, we have to define who in this user will be registered then subject to our shores of the message.
It shall be not displayed that form.
OK, so here I define what the F condition if is registered.
That means if that is true, then it shall be display one of the tape.
So better after this.
I just take one of the Dave and Dave Glass defined on the bootstrap class as a l'arc alert large.
A large success.
A lot of our success and here it should be shows on the message as a congratulation.
Congratulation and registration.
Registration's successfully, successfully done so this step up, one of the messages will be display
and Ilze, so also after that, we have to do better.
I just think that things on here, OK, and after this, it should be displayed that Ale's.
So does somebody find that?
Ls that the one percenters and the Ale's and Aless will be Lord this form.
OK, will load this form.
And also we have to do we have to finish our F condition suffered that form here.
I just simply defined as and if ok I hope you can well understand about it.
So here I define the live condition.
If it's registered that means if this is true then it shall be displayed.
Our D Dave ls it shall be display our form right now.
That's all.
That's all you have to do.
So now let's check this out.
If you get any other, we'll solve it so they have no idea about it.
So now I just click as save all.
Now I want to check it or server.
Yeah, you can see they have no or it's not perfectly running, so now what do want to refresh our pace?
And here is showing some of the error message as a viewer looking at views registered did not return,
that its GDP response is still a response means that we defined some of the conditions like here.
We defined that condition.
That is actually if condition because we have to do we have to actually go outside from this.
If conditions if you want to go outside from these conditions, you have to establish that things from
here.
So I just simply defining it and then also that we have to actually go outside from the safe condition,
OK, and then that is our ills and then our dictionary.
So now let's check this out.
If you look at the table again.
Check it again.
Everything is running well now I just refresh it, yes, now it's not perfectly loaded.
So because of all here, I actually am defining that or else into our air conditioned area.
So I we have to do we have to go outside from today.
If conditions go from here, you have to it.
OK, so now let's check this out.
Our instruments are perfectly working on not knowing what to do under the final, the name as crazy
and define the password as a one, two, three, four or five.
And then I define that email address as a Karzai at 8:00 a.m. dot com.
And here you have to define the SCDP.
So right now I'm using the desktops and then our Facebook dot com and the test.
OK, so that will be our Facebook idea.
And I just through some of the emails.
So right now, for educational purposes, I'm actually using this email.
I can open it.
So that is actually the emails and now I'm looking at the register.
Yes.
Now see Friend Now is showing as a congratulation registration is successfully done.
And also here I define this type of one of the condition.
We know what this decision will be completed in our this form.
Not very visible.
Right.
So far, the results here I have defined our LS condition is first of all here.
Have help that as a register.
If this is true, then our dispositional displayed here.
I have passed that register in order to stereotypies in our status html into the registered e-mail here.
You can define the F condition and the if condition.
If this is true, then if we display our dispersion, that means this device for the reasons here you
can see it's not showing our step, but ale's is shall we display our this form.
Right.
Right now we are successfully registered.
That means our institution is successfully done.
That means our register is true.
For the reasons you can see, it's only showing this message or not.
Our form is not visible.
But if you go to that home and after that, if you click on the register, you can see or is there for
me again loaded.
So now let's check this out.
Our everything is perfectly inserted or not.
Now go to our database.
So that is our user.
No, just refresh it.
Yes.
Now we can defend now our user name.
I have defined as Icaza that the email address is also visible if you open it so you can see directly
username feel.
I have defined as a Karzi.
So that is our email address is also visible and also created one of the encrypted password.
You can see the sort of really created on that encrypted password on here.
And also you can see that is for the user only this portion that is the permission as active is selected.
So this is or is not that super admin user for the reasons our tool of this field is not defining.
OK, so you still successfully in getting all the data that means here is still perfectly getting it.
And there is our last logging and the joining that everything is not perfectly visible.
And also here I defined our image.
So now let's check this out.
If you go here and go to the profile, you can see into the profile the image that is this image.
I have uploaded this no perfectly now display, OK, that means our image is also perfectly uploaded
in our media.
And the profile pieces that is actually on the folder here is not perfectly updated.
So this profile image and also I have defined another field as our Facebook.
You are also here.
I have two of this.
You know what?
Another model, right.
So here I have two of these in our user info.
That means here I have defined to have this field.
So if you go to our database that had been area, go to home.
So that is our another our model as a user info.
So now if you open that user info, you can see there is also created as a Karzi seem to discover the
you can see that is actually our specific user is not visible.
So that is our user name is visible, the Facebook I.D. So I have defined the Facebook idea as a B dot
com, then slash test.
And also you can see it's not showing our picture.
So that is our profile into the profiles folder.
That is our design.
Eleven eleven PMG.
Right.
So far, the results you can see still perfectly save this data that this image data in particular that
folder area, that means we successfully complete our decision process.
So now if you want to create this one, I just need meet Azarian again.
And I just put the password as a one, two, three, four, five, and Ardian at the Schimel dot com
and I just put on the Facebook ID.
So here I defined as a Facebook at Oriental's.
Choose another email and I want to choose this one, OK, or this one because open there is a design.
Ten click the register.
Yeah, registration is successfully completed.
So now go again and check it.
You can see to the profile there is another picture is added.
So that is our picture I have uploaded.
It's perfectly uploaded and go to our admin into the admin.
If you go here, go to the user info.
You can see that the area.
And that is our user is created as Arion, that is a Facebook, it is also perfectly added and they
are profile image is also perfectly added.
Right.
And also, if you go to our user position and the user position here, you can see that advocacy and
the email address I have defined result considering Gmail dot com and also into the service that, as
you can see, the direct to the active for the superdad been.
And these for two of these users, they have no permission.
So you successfully create our reserve based.
Right.
So right now we successfully complete our database and from here we send our tool, this data that means
one three of these 40 three of these field data is safe in our user table.
And also these two data is safe in our user table.
So we successfully did that work.
I hope you can understand about it.
So that is our form related, all that issue.
So we successfully complete our station position.
So can logging with this user.
In our next video, I will show you that things with a live example.
So thanks for watching and I will see you the next video.