Hello, friend, welcome back in this video on to discuss about that submission form like here, I have
already filed on the farm and in particular that position, I have defined the three fields.
One is our full name.
That is a date of birth.
And that I'm using email right now here.
If you put some of the name here, if you pull out the date, OK.
And I also define some of that use user email address, click on the submit now consistent showing some
of the error as a forwarding error, because when you actually submitted one on the form, it's actually
defined some of the Tokidoki.
So you have to add some of the token into this form area.
You can see they have also something instruction that is actually our CSF token.
We have to add it in our post area.
So I just simply copy it, OK?
I just simply copied and in our form e-mails into the form e-mail.
So there is are forms after this form here.
We have to do we have to define our this character again and also into the form area.
I'm just making up things to.
And that means you shall be redirected to our this same page.
That means in our farmers Tamalpais.
And here I define that methode as a post.
OK, better to do and define that as a capital post.
So here I define as a post.
That means when you click on the submit then it should be the key to our view pays into the view because
I have defined already one of the function as a form function.
Right.
So did the request previously.
I have already created on the object.
So that is R with the form our form, user user form.
That means, you know, the user form.
I have defined this field.
One will be as a user name, that is our user DB and the user email.
Right.
So that is all our actually our name.
So now it to do and actually store all the data.
So first of all I want destroy all the data and then I want to do and visible all the data so the,
all the data in the same page that is in our form page.
So if you want to display then you have to do we have to work.
In our view that means here I want to defining it.
So for doing this, that is our library.
OK, that means here I have already defining it.
So after that I just pass it in our form, a stable place.
And I want to do first of all, I want to check it.
So if you want to check it for doing this, I define of the if condition.
Sorry.
So here at the front of the if condition and the F here, first of all, I want to check it.
So here that is already Crysta.
So with this request, I want to check it.
This form that I posted are not OK.
So that means here I defined the policy post from here.
So now to do and define some of the condition as if our district is.
That means if you want to define what different type of name, then you have to define this name in
particular, that area.
OK, that means into this form area of whatever the request, I just simply pass it.
Whatever the request, I pass it from here.
So no one to do.
I want to check it.
So far there is no here defined as if our this is is first of all I define the method.
OK, that means sorry.
So that is our method or this method is forced or not.
So first of all, I want to take it as a post it or not.
OK, if that means if this method is paused, ok, then if this matter is balls then I want to do to
create another object.
So previously I have created this object and this object is blank.
Right.
So now I want to do in particular that position here.
I have submitted some of the form that are from this position.
I want to do and define some of the information like into the full name.
I have defined some of the data in the data, but here I have defined some of the data and also for
the email, I have defined some of the data.
Right.
So now I want to actually store all the data for the regions here when it still be as a post method.
So after the post method, I want to do I want to define another object.
I just simply defined that name as a new form.
So for this new form, I want to define that now.
All the polls that I want destroyed and the form I have defined our forms and that user our form.
OK, that means in our user form before that was actually empty.
So now on to a store, all the data.
So here I pick another object with these forms.
I define our user form into the user form.
I define our all the requested pulls data.
OK, so I just simply defined as a request that means requested all that our request.
It pulls data, I just simply say it.
And after that I want to do until we find another condition.
So here I want to define another condition as if sorry.
I just simply define another F condition if our d our form is valid or not.
OK, that means this form is valid or not.
So for the reasons that are defined as our this new form, that means that this form is valid or not
just simply defined as is and then underscore valid.
So it is simply defined as is valid or not.
So after that I want to do and to define all of the variables.
So here I have defined our all the.
Form variables are formed variable at this one, because here they have some of the data.
So I want to take this field data, right, because that is actually our TextField data.
So this data I want to receive so far, the results here we have to do we have to define our this variable
that means our this username variable.
So I just simply define our this filename that that is actually that username in e-mail.
We define that things as a name.
Right.
So if you as I told you before, if you go to our best source into the Pacers here, you can see we
defined that name as a user name, name as it used to be, name as our user emailed to know and actually
take it.
So for the reasons here, I defined our user name.
So now here with this, I just simply defined as a new and with this new form and with this new form,
they have also another method as a clean data, OK, clean underscore data.
So I just simply defined this method.
And with this method I want to get our all the data from our forms so that these are forms that are
out to get it.
And I just take that things on here, OK.
So with this clean that actually help you to get all the data from your forms so-called that form that
I we get and I just take the things with this name as a user name.
And also we have to get all the DA and other filenames a better idea, simply copied.
And now I just have the tree field, I have another field as a user or DB that data.
But Diaby actually.
So that is a user, the user Diaby I just simply defined as the user will be another one will be a user
email.
So I just simply defined as that user email and the user email.
OK, and after that we have to do we have to pass it in our dictionary.
So here we have to pass it.
So because all the data we have to update it and also we have to view it.
So I want to visible visible that all data in particular, that pace so far, the results here, we
have to define that things with addiction.
OK, with the addition I just simply defined as an update and into this update, I want to update our
field that as our field, that as a user name, whatever the data I actually receive from our form.
So here I just simply define our user name.
So here I want to update it so that our value will be as a user name.
I just simply define our user name.
OK, so now we just simply update it.
And also we have to do the same things for our another all the field.
So that is our another field will be as a user to yabbie as a user, be as it usually may as a user
email.
And also here we have to do we have to define some of the key.
Because of all here, I have already get all that our field data and also here I updated it.
So now we have to actually parse all the data in our estimate.
Right.
So here we have the actually visibility for the results here.
I want to do to the final of the key in particular, that position I just named the key as a form OK,
form underscore submitted.
So this step up, one of the key I have defined and I just defined as a sound value as s so this step
up the way I have defined.
So now I just simply defined with distinction.
And also I found that things with this context and into the following statement.
Now we can actually visually so you can visible it with our diski.
That means our D forms submit data.
So now go to our farmers HTML.
So that is our foremost HTML.
And here after this.
Look after this.
I want to visible it so better after this form I define what the H attack.
So I just simply defined as the H attack.
And then after this I simply define the if condition.
OK, so here we have to define the percentages and what percentages and this position I define as an
F and then also we have to do we have to end it.
So just simply define our and if the double percent is and then the and if.
Right.
So no, in particular that area I have already defined what the key Sarki name as a form submit that
also the form submitted to our Ortal condition will receive.
So now I just simply copied out this key.
I just simply copied NALGO here into the F condition here.
I just simply defined our form.
Submit when it should be as a true, then it shall be display our all that name like here I defined
as a paetec ok into the P tag.
I defined that name.
Our name will be visible and name will be visible with our so I have defining it with our user name
so I just simply copied it.
And now here I simply defined our user name, OK.
And also will display our test of this field or test of this field will be as the date of birth, date
of birth, date of birth and for and then also that email.
I just sent the email, so our feeling we have to define so our name as a user Dobbie, so that will
be the GOP and the email and that will be as it user email.
I just simply copied and here it will be as user email.
OK, and so I just simply updated our name data and email.
Perfect.
So if everything OK it now should be displayed like here.
If you look at the Savol first of all I want to check it.
Yeah, everything is correct.
Now go here.
If it displays no underdo and the difference of the name here I define some of the date and also defined
s the user email address.
Click on the submit.
Yes.
Now considering now it's perfectly display our name Azarian and I just define the data part and that
is our data.
But it's not visible, that is email and our decmil data is not perfectly visible, in particular that
position.
So here I just simply defined with the same pace so far the results in particular data.
Yeah.
You can say define that action.
Action will be in our form as Tamalpais for the reasons I just make that things as a blank.
So here I define what the F condition.
With this token I get all the data and now when I just simply display our user name, the data part
and the email.
Perfect.
So that's all you have to do.
I think you enjoy it very much and there is very much important.
One of the part I can add that submission into this form.
Seno next video I want to discuss about Moorfield example then this should be very much helpful to you.
So thanks for watching.
I'll see you in the next video.