Welcome to the Spoken Tutorial on Post variable. Here I am going to use the same code as that of the 'get.php' page. The same one that I have done in my 'get' variable tutorial.
If you have not seen that already, please do so and then go through this tutorial. You will be able to know all these codes about.
If you already know these codes about and you have not seen the 'get' tutorial, you are welcome to join us.
I have got my page with my 'get' as previous
I have got a new file called 'post.php'
Actually, what I want to do is change this as post and post it as a post variable.
So quite simply and logically I will just go through this and change this to post
and here is what we call 'post' instead of 'get' and this will work
Let me show you my post page
there is nothing here. There is no question mark
Let me type alex and click here. But nothing has come up
that is why
do you remember if you are working with another file, you need to change the action
let's refresh it
I can see alex. Let me click here and this is hello alex
next we are in the 'post.php' font and there is no question mark
something has been taken across. It has been stored inside a post variable
but why it is not showing two users
this will be absolutely brilliant if we can say 'password' .Let's call this 'password'
I'll say here 'thanks for your password' and let's go back
and now, as you can see, this is a password field
so I'll type 123 as my password and I click here
it says, thanks for your password
it has been stored. so it can be used. I can use it, if i want to
I'll just change that. so it makes more sense
let's do a refresh and resend the data
123, click here and its not displaying. That's why
you should check these things. It is easy to make mistakes
Let me type 123. Let me click here and it says 'thanks for your password'. and it as given me my password
It proves that it has been carried across it has been stored in a post variable
but it hasn't shown the user, which could have made sense
because there would be no point having these as blocks. They are not readable in any way.
and here there would no point having it because people can read your password
So it will be very easy for people to look through your internet history.
and see you have typed your password. But people might get access to your account with that
so you can see this post. These are used for functions, also the amount that can be sent through it
so if for example, my password was really long say over 100 characters it will still be accepted
but in the 'get' variable you have a hundred character limit
so the post thus seem to be useful. But if you are evaluating things, like, trying to sort out some things, you can use the get variable
just to see if your data is being passed through.
so basically that's post variable
you would be using it a lot on projects for form submissions. This brings us to the end of this tutorial
This is Siddarth for the Spoken Tutorial Project. Thanks for watching.