Difference between revisions of "PHP-and-MySQL/C2/POST-Variable/English-timed"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with '{| border=1 !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 ha…')
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{| border=1
 
{| border=1
!Time
+
|'''Time'''
!Narration
+
|'''Narration'''
 
|-
 
|-
|0:00
+
|00: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.
+
|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:13
+
|00:13
 
|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 have not seen that already, please do so and then go through this tutorial. You will be able to know  all these codes about.
 
|-
 
|-
|0:21
+
|00:21
|If you already know these codes about and you have not seen the 'get' tutorial, you are welcome to join us.
+
|If you already know these codes about and you have not seen the '''GET''' tutorial, you are welcome to join us.
 
|-
 
|-
|0:28
+
|00:28
|I have got my page with my 'get' as previous  
+
|I have got my page with my '''get''' as previous.
 
|-
 
|-
|0:31
+
|00:31
 
|I have got a new file called 'post.php'
 
|I have got a new file called 'post.php'
 
|-
 
|-
|0:36
+
|00:36
|Actually, what I want to do is change this as post and post it as a post variable.
+
|Actually, what I want to do is change this as '''POST''' and post it as a '''post''' variable.
 
|-
 
|-
|0:44
+
|00:44
|So quite simply and logically I will just go through this and change this to post
+
|So, quite simply and logically I will just go through this and change this to '''POST'''
 
|-
 
|-
|0:51
+
|00:51
|and here is what we call 'post' instead of 'get' and this will work
+
|and here is what we call 'POST' instead of 'GET' and this will work.
 
|-
 
|-
|0:57
+
|00:57
|Let me show you my post page
+
|Let me show you my '''post''' page.
 
|-
 
|-
 
|01:00
 
|01:00
|there is nothing here. There is no question mark
+
|There is nothing here. There is no question mark.
 
|-
 
|-
 
|01:04
 
|01:04
|Let me type alex and click here. But nothing has come up
+
|Let me type "Alex" and click here. But nothing has come up.
 
|-
 
|-
 
|01:09
 
|01:09
|that is why
+
|That is why,
 
|-
 
|-
|1:11
+
|01:11
|do you remember if you are working with another file, you need to change the action
+
|do you remember if you are working with another file, you need to change the '''action'''.
 
|-
 
|-
|1:19
+
|01:19
|let's refresh it
+
|Let's '''refresh''' it.
 
|-
 
|-
|1:22
+
|01:22
|I can see alex. Let me click here and this is hello alex
+
|I can see "Alex". Let me click here and this is "Hello, Alex".
 
|-
 
|-
|1:28
+
|01:28
|next we are in the 'post.php' font and there is no question mark
+
|Next, we are in the 'post.php' '''font''' and there is no question mark.
 
|-
 
|-
|1:33
+
|01:33
|something has been taken across. It has been stored inside a post variable
+
|Something has been taken across. It has been stored inside a '''post''' variable.
 
|-
 
|-
|1:39
+
|01:39
|but why it is not showing two users
+
|But why it is not showing two users?
 
|-
 
|-
|1:44
+
|01:44
|this will be absolutely brilliant if we can say 'password' .Let's call this 'password'
+
|This will be absolutely brilliant if we can say 'password'. Let's call this 'password'.
 
|-
 
|-
|2:02
+
|02:02
|I'll say here 'thanks for your password' and let's go back
+
|I'll say here "Thanks for your password" and let's go back.
 
|-
 
|-
|2:11
+
|02:11
|and now, as you can see, this is a password field
+
|And now, as you can see, this is a password '''field''';
 
|-
 
|-
|2:15
+
|02:15
|so I'll type 123 as my password and I click here
+
|so I'll type 123 as my password and I click here.
 
|-
 
|-
|2:22
+
|02:22
|it says, thanks for your password
+
|It says, "Thanks for your password".
 
|-
 
|-
|2:25
+
|02:25
|it has been stored. so it can be used. I can use it, if i want to
+
|It has been stored. so it can be used. I can use it, if I want to.
 
|-
 
|-
|2:31
+
|02:31
|I'll just change that. so it makes more sense
+
|I'll just change that; so it makes more sense.
 
|-
 
|-
|2:37
+
|02:37
|let's do a refresh and resend the data
+
|Let's do a '''refresh''' and resend the data.
 
|-
 
|-
|2:42
+
|02:42
|123, click here and its not displaying. That's why
+
|123, click here and it's not displaying. That's why
 
|-
 
|-
|2:49
+
|02:49
|you should check these things. It is easy to make mistakes
+
|you should check these things. It is easy to make mistakes.
 
|-
 
|-
|2:54
+
|02:54
|Let me type 123. Let me click here and it says 'thanks for your password'. and it as given me my password
+
|Let me type 123. Let me click here and it says "Thanks for your password" and it has given me my password.
 
|-
 
|-
|3:06
+
|03:06
|It proves that it has been carried across it has been stored in a post variable
+
|It proves that it has been carried across, it has been stored in a '''post''' variable.
 
|-
 
|-
|3:12
+
|03:12
|but it hasn't shown the user, which could have made sense
+
|But it hasn't shown the user which could have made sense
 
|-
 
|-
|3:16
+
|03:16
|because there would be no point having these as blocks. They are not readable in any way.
+
|because there would be no point having these as '''blocks'''. They are not readable in any way.
 
|-
 
|-
|3:22
+
|03:22
|and here there would no point having it because people can read your password  
+
|And here, there would no point having it because people can read our password.
 
|-
 
|-
|3:27
+
|03:27
|So it will be very easy for people to look through your internet history.
+
|So, it will be very easy for people to look through your internet history  
 
|-
 
|-
|3:32
+
|03:32
|and see you have typed your password. But people might get access to your account with that
+
|and see you have typed your password. But people might get access to your account with that.
 
|-
 
|-
|3:38
+
|03:38
|so you can see this post. These are used for functions, also the amount that can be sent through it
+
|So you can see this post. These are used for '''functions''', also the amount that can be sent through it.
 
|-
 
|-
|3:45
+
|03:45
|so if for example, my password was really long say over 100 characters it will still be accepted  
+
|So, if for example, my password was really long say over 100 characters, it will still be accepted  
 
|-
 
|-
|3:52
+
|03:52
|but in the 'get' variable you have a hundred character limit
+
|but in the 'get' variable you have a hundred character limit.
 
|-
 
|-
|3:57
+
|03:57
|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
+
|So, the '''post''' thus seems to be useful. But if you are evaluating things, like trying to sort out some things, you can use the '''get''' variable
 
|-
 
|-
|4:08
+
|04:08
 
|just to see if your data is being passed through.
 
|just to see if your data is being passed through.
 
|-
 
|-
|4:11
+
|04:11
|so basically that's post variable  
+
|So basically that's '''post''' variable.
 
|-
 
|-
|4:14
+
|04:14
|you would be using it a lot on projects for form submissions. This brings us to the end of this tutorial
+
|You would be using it a lot on projects for '''form''' submissions. This brings us to the end of this tutorial
 
|-
 
|-
|4:22
+
|04:22
 
|This is Siddarth for the Spoken Tutorial Project. Thanks for watching.  
 
|This is Siddarth for the Spoken Tutorial Project. Thanks for watching.  
 
|-
 
|-

Latest revision as of 14:23, 26 May 2015

Time Narration
00: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.
00:13 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.
00:21 If you already know these codes about and you have not seen the GET tutorial, you are welcome to join us.
00:28 I have got my page with my get as previous.
00:31 I have got a new file called 'post.php'
00:36 Actually, what I want to do is change this as POST and post it as a post variable.
00:44 So, quite simply and logically I will just go through this and change this to POST
00:51 and here is what we call 'POST' instead of 'GET' and this will work.
00:57 Let me show you my post page.
01:00 There is nothing here. There is no question mark.
01:04 Let me type "Alex" and click here. But nothing has come up.
01:09 That is why,
01:11 do you remember if you are working with another file, you need to change the action.
01:19 Let's refresh it.
01:22 I can see "Alex". Let me click here and this is "Hello, Alex".
01:28 Next, we are in the 'post.php' font and there is no question mark.
01:33 Something has been taken across. It has been stored inside a post variable.
01:39 But why it is not showing two users?
01:44 This will be absolutely brilliant if we can say 'password'. Let's call this 'password'.
02:02 I'll say here "Thanks for your password" and let's go back.
02:11 And now, as you can see, this is a password field;
02:15 so I'll type 123 as my password and I click here.
02:22 It says, "Thanks for your password".
02:25 It has been stored. so it can be used. I can use it, if I want to.
02:31 I'll just change that; so it makes more sense.
02:37 Let's do a refresh and resend the data.
02:42 123, click here and it's not displaying. That's why
02:49 you should check these things. It is easy to make mistakes.
02:54 Let me type 123. Let me click here and it says "Thanks for your password" and it has given me my password.
03:06 It proves that it has been carried across, it has been stored in a post variable.
03:12 But it hasn't shown the user which could have made sense
03:16 because there would be no point having these as blocks. They are not readable in any way.
03:22 And here, there would no point having it because people can read our password.
03:27 So, it will be very easy for people to look through your internet history
03:32 and see you have typed your password. But people might get access to your account with that.
03:38 So you can see this post. These are used for functions, also the amount that can be sent through it.
03:45 So, if for example, my password was really long say over 100 characters, it will still be accepted
03:52 but in the 'get' variable you have a hundred character limit.
03:57 So, the post thus seems to be useful. But if you are evaluating things, like trying to sort out some things, you can use the get variable
04:08 just to see if your data is being passed through.
04:11 So basically that's post variable.
04:14 You would be using it a lot on projects for form submissions. This brings us to the end of this tutorial
04:22 This is Siddarth for the Spoken Tutorial Project. Thanks for watching.

Contributors and Content Editors

Minal, Pratik kamble, Sandhya.np14