Welcome back.
Now, what we need to do is that we need to work on the login and registration pages.
So what I'm going to do is that I'm going to start with the registration page.
So here we have the register that each email.
The first step is that we need to rename this register from registration email to register date.
This is the first step.
The second step is that we need to open the register and then we need to look for the form.
Remember, we have here.
We have here this form.
Let me look for it here.
This form?
Yes, sir.
Let me close down this 1/1.
Let me try to close down this.
Because I don't want to.
Let me close down this first here and then let me close down this second.
And now we have the register.
So the register here, we have a form.
As you can see, we have this form.
So this form it has the name, the email, the password, the confirm password and the the register
here.
So before we do anything, let's make sure that we have the names.
We have name for the name.
We have name for the email for the password, for the confirmed password.
For the register button.
We need to say your name.
We say name and the name is going to be register.
Register.
And that's it for the form itself.
I'm going to give it action and methods.
I'm going to say method and the method is going to be post.
So the method is post the action.
The action is going to be.
And the action is going to be a resistor, not BHP, which is the same exact page.
So I'm going to be using the same page to register the user.
So at the top here at the top, we need to add the logic of the registration.
So at the top I'm going to say here HP and then HP.
And then what we want to do is that we want to get the data from the form.
So what's what?
Let me first go to the register.
I'm going to say here just to explain previous.
Mr. BHP and that explain what I'm going to do.
So the user would type their name, email password and confirm the password and then would click on
register.
If everything is fine, we need to display that.
Otherwise we need to display an error.
So what I'm going to do is that.
Here.
I'm going to say if is set.
He's set and then.
Lost because this is we are dealing with it was request a set bust and then this button which which
which has a name called register.
So we need to say if it said POS register.
We need to register the user else.
We need to display an error or do something.
So in case of error, I'm just going to say I'm just going to keep it empty for now.
There is no need to display anything here.
And it gives the user forgets to to feel.
One of these one of these inputs.
There's no problem.
Because if you click if you if you try to click on register without filling one of this one of these
inputs, it's not going to allow you anyway.
So we don't need to worry about this.
So here, if if register, if we pass, if we set, post, register what we want to do.
Is that we want to get the data from before.
So we need to say your post and their name.
We need to give the name and store it in the in a valuable code name.
And then we need to get to the email.
So here's an email.
And year, I'm going to say.
Email.
And then we need a passport.
Passport?
And here.
Pass ward and then the.
Password.
And lastly, the confirm password to confirm password.
So here I'm going to say confirm password.
Con firm.
Passport.
And I'm going to store it in a valuable call.
Confirm passport.