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