1 00:00:00 --> 00:00:12 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. 2 00:00:13 --> 00:00:20 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. 3 00:00:21 --> 00:00:27 If you already know these codes about and you have not seen the 'get' tutorial, you are welcome to join us. 4 00:00:28 --> 00:00:30 I have got my page with my 'get' as previous 5 00:00:31 --> 00:00:35 I have got a new file called 'post.php' 6 00:00:36 --> 00:00:43 Actually, what I want to do is change this as post and post it as a post variable. 7 00:00:44 --> 00:00:50 So quite simply and logically I will just go through this and change this to post 8 00:00:51 --> 00:00:56 and here is what we call 'post' instead of 'get' and this will work 9 00:00:57 --> 00:00:59 Let me show you my post page 10 00:01:00 --> 00:01:03 there is nothing here. There is no question mark 11 00:01:04 --> 00:01:08 Let me type alex and click here. But nothing has come up 12 00:01:09 --> 00:01:10 that is why 13 00:01:11 --> 00:01:18 do you remember if you are working with another file, you need to change the action 14 00:01:19 --> 00:01:21 let's refresh it 15 00:01:22 --> 00:01:27 I can see alex. Let me click here and this is hello alex 16 00:01:28 --> 00:01:32 next we are in the 'post.php' font and there is no question mark 17 00:01:33 --> 00:01:38 something has been taken across. It has been stored inside a post variable 18 00:01:39 --> 00:01:43 but why it is not showing two users 19 00:01:44 --> 00:02:01 this will be absolutely brilliant if we can say 'password' .Let's call this 'password' 20 00:02:02 --> 00:02:10 I'll say here 'thanks for your password' and let's go back 21 00:02:11 --> 00:02:14 and now, as you can see, this is a password field 22 00:02:15 --> 00:02:21 so I'll type 123 as my password and I click here 23 00:02:22 --> 00:02:24 it says, thanks for your password 24 00:02:25 --> 00:02:30 it has been stored. so it can be used. I can use it, if i want to 25 00:02:31 --> 00:02:36 I'll just change that. so it makes more sense 26 00:02:37 --> 00:02:41 let's do a refresh and resend the data 27 00:02:42 --> 00:02:48 123, click here and its not displaying. That's why 28 00:02:49 --> 00:02:53 you should check these things. It is easy to make mistakes 29 00:02:54 --> 00:03:05 Let me type 123. Let me click here and it says 'thanks for your password'. and it as given me my password 30 00:03:06 --> 00:03:11 It proves that it has been carried across it has been stored in a post variable 31 00:03:12 --> 00:03:15 but it hasn't shown the user, which could have made sense 32 00:03:16 --> 00:03:21 because there would be no point having these as blocks. They are not readable in any way. 33 00:03:22 --> 00:03:26 and here there would no point having it because people can read your password 34 00:03:27 --> 00:03:31 So it will be very easy for people to look through your internet history. 35 00:03:32 --> 00:03:37 and see you have typed your password. But people might get access to your account with that 36 00:03:38 --> 00:03:44 so you can see this post. These are used for functions, also the amount that can be sent through it 37 00:03:45 --> 00:03:51 so if for example, my password was really long say over 100 characters it will still be accepted 38 00:03:52 --> 00:03:56 but in the 'get' variable you have a hundred character limit 39 00:03:57 --> 00:04:07 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 40 00:04:08 --> 00:04:10 just to see if your data is being passed through. 41 00:04:11 --> 00:04:13 so basically that's post variable 42 00:04:14 --> 00:04:21 you would be using it a lot on projects for form submissions. This brings us to the end of this tutorial 43 00:04:22 --> 00:04:27 This is Siddarth for the Spoken Tutorial Project. Thanks for watching.