I will call you back again to another video lecture in PHP.
In this video lecture I will go ahead and talk about the URL parameter.
All right.
So the URL parameter I'm going to talk about is how we receive information from the users in PHP using
the method gate.
Let's go ahead and go back right in here and create this form again.
So go ahead and close this and I'm going to close this form.
Then I go ahead and uh just like we do.
I'll go right here and give the name of this.
We need to go.
That is, go ahead and give the site name that is PHP.
That is the file we are working with.
And then this method is what I want to talk about the gate method.
So I've just added that right in there.
So let me go ahead and say I need a name.
So I'll just give it a name prompt.
And then we go ahead and uh use the input tag and the type is going to be text.
Then we go ahead and give it a name and let the name be username.
All right.
So go ahead and choose an input tag.
And go ahead and put just submit a submit button.
So it is going to be submit and close this.
All right.
Now right in here I'll go ahead and uh save this.
Let's go ahead and refresh and check it out.
So we have this right in here.
And then let's go ahead and uh equal this out.
So equal then underscore get and uh we want to get is the username the username.
All right.
So I'm going to open up this.
All right.
So let's go ahead and drag this open a little bit I'll go ahead and open this.
My Brasa.
I'm going to shift you right in here.
This guy and I shift this again so that we can see what we're doing.
All right, so I've shifted this, and I have this name here.
So if I go ahead and put a George and if I hit on submit, you can see that I have George.
And now right up here you can see that I have visa name equal to George.
This was displayed on that and it makes that not secured.
So over here you can see I have a username equal to George.
And you will be wondering ever since you are visiting websites you have never seen that happen.
So why should we have that right in there?
It is not secured and we will shift this a little bit again so that I can be able to explain more on
this.
So let's go ahead and drag this right in here because we need to work on this URL parameters and we
will understand what we are doing.
All right.
Now you can see that this is not very secured because it's in a password.
You're going to see the password right in here.
And I can actually go and say because we have site dot PHP and this question mark goes username equal
to these.
So what if someone go ahead and put in ampersand and uh let me say so I have this which we did previously
say ampersand age equals 24.
If I go ahead I click on this.
Nothing actually happens.
But if I go right in here I change the username to age.
Save this refresh.
You can see I have 24 printed out here.
Even though we don't have this, it's being saved on the URL.
You can see that.
So it means we need to secure.
This is very very important though.
This is a very good rule in Google.
Let's say we go over to Google.
Let's open up Google.
And uh Google is one of the platforms that you use expose URL.
I don't actually know why they do that.
So we can see just like we have here, if we go back to Google and search this like let me say Cat,
Um, I just cut.
Now look over here.
Google has the URL exposed.
I don't actually know why they did that.
You understand?
So you see slash Q equal to cut and ampersand equal to all this.
So I don't know why they did it.
Now if I go ahead and, uh, copy whatever that is here I'll get to the end.
I'm copying everything to the end.
And when I get to the end, I'll delete this from the Google URL.
I can go to slash for, like, cattle and type cattle.
Remember, I'm not doing this from the page.
I'm doing it from the URL.
And if I hit on cattle, it'll go ahead and search about cattle.
You see that?
All right.
Now you're going to go ahead and change this to, uh, let me say.
Let's put the name George.
You can see it gives me everything concerning George.
And if it were to change this to.
A minimum level.
Available, and it's going to give us a written about memoir.
We see that.
So this is one of the things that Google does.
They expose URL and we can go back to Cato.
Let's say Cato and leave this right in here because I love the pictures and this is being shown.
All right.
So you can see that Google expose a URL and you can search from there.
Just like what we are doing right in here.
But this is more secured because you can't penetrate a Google uh, database.
You can enter through their server is more secure than whatever you are doing.
Google actually high use high technology than medium to be very strong that you, Perry, can interfere
with your server.
But if you should leave yours open, I bet you within 24 hours you will be hacked.
You will be hacked, I tell you that.
So for us to be more secure, we needed to do more on this URL parameter.
So we need to get over here and talk about something secured Sunderbans to use, which is very important.
So I've made this to get us to know more on what is really going on.
Then also the fact that we are not secured and living our parameters in the URL and our users and the
hackers can actually grab them and use them against us.
I am going to teach us how we can be able to secure this URL without displaying the usernames, the
profile, the password, everything on the URL which is not really good because if someone get this
guy and change this name to password.
And now let's go back here and uh, okay, let's go over here and uh, see this is going to be password.
All right.
Now if I should if I should change copy this and change the H to password, I'm going to save this.
And let's go ahead and refresh this.
And uh, let's kind of remove this.
So if I go over here and input the name let me see the password I'm going to say hello, and I can see
that nobody sees that.
And let's go ahead and submit this and check it out.
Hello.
If you win, I printed it out.
Oh, let's go ahead and say we are open to print this out.
So on one hand please this this is again a refresh.
Now I'm going to change the password to be entered in.
And uh I will say what I'm doing.
Now let me submit that.
And over here on the URL you can see hello world.
It is more secure because my password is on the URL and people can copy this.
And that is why we are going to look on something more secure in the next video lecture.
So get started.
Move over there.
Let's go ahead and deal with this and secure this URL because it is very important in programming.
So thank you so much and I'm good to see you over there.
If you have any question on this use the question and answer section.
And I'm going to get back to you as soon as possible.
Thank you so much.
And I'm going to see you in the next video lecture.