PHP Tutorial 17 - POST Variable (PHP For Beginners)

preview_player
Показать описание
Similar to the GET variable, the POST variable allows you to send data to the server from a HTML Form, but the data is invisible to the user. This is a great increase in security because if you are using the POST Variable to store information such as a password, the password is not visible in plain-text.

For more information, check out the website:

Рекомендации по теме
Комментарии
Автор

I've been through a lot of PHP videos lately, I like your style and approach. Breaking it down to bite size topics makes it work well as a reference we can come back to. IT also lets us target what we need to know about rather than doing a whole big session in one go. Thanks ;)

MarkS
Автор

I have been a web designer for years using html and html templates have been longing to write code and this is really helping out.I love this.God bless you.

Covenantk
Автор

thanks for the awesome tutorial. I've finished 17 tutorials in 2 day. it is kinda addicted! God bless

DanielRannu
Автор

best php tutorials i have ever see, thank you !

GorMatevosyanJermuk
Автор

Why would anyone dislike this? This is awesome keep up the good work!

vikic
Автор

I had a similar issue in a previous tutorial after spending ages trying to work out what I had done wrong I decided to redo that module as it's short enough and it worked.

BridgeinCoUk
Автор

i never knew have to be use square bracket inside to use the name till i figure it out. learn my lesson.  what a great tutorial!

Brianvanvlymen
Автор

Very useful tutorials, one the best, if not the best videos on the subject ! Keep up the good work Chris!

peacefullwarrior
Автор

Thanks for all your PHP tutorials. Pretty simple!

sriramm
Автор

Great tutorial, thanks a lot.
I think that if you gave the variables different names at each stage, e.g. userA in the login.html page and userB in the area.php page, i.e.

$userB = $_POST['userA'];

- or something similar - it would have been even clearer!
Well done!

akprodromou
Автор

You know because of this tutorial, when i open my theme editor of my site cdkosong.com, now it's kinda "yeah i know what this is mean" ... you know like just got it to understand the new language. So i guess it is really fun, appreciate it Chriss.

DanielRannu
Автор

That was just great ! so easy to understand.

Thank you.

perezdr
Автор

Thank you very very much! Now I am assumming that MYSQL is where the user will be able to create usernames and passwords instead of my having to type it in such as in these cases of the tutorials.

grantdavis
Автор

The simple way to remember it is anything that has security implications should use $_POST, passwords etc, and anything that the information does not need to be kept secure can use $_GET

dashbyictfd
Автор

Hello Can't we make both the html code and php one in the same php file? If so what would be the action attribute value in form element?
Thank you for your useful tutorial.

islamsayed
Автор

you should use the same method in both files. If you use GET method in the form method='get', then you have to use $name = $_GET['user']

thongola
Автор

ok, POST method passes value to processing php file in hidden manner while GET passes form value explicitly (you can see in browser address bar). thank you.

eegiievol
Автор

Damn this is what I've wanted to know for my whole childhood.

superyn
Автор

Hi,

Can you give me practical examples GET & POST methods usage in real time ?

If both methods do the same except post doesn't pass parameters in browser, why do we need to use get method ?

Suresh

skolli
Автор

I have 3 numbers lets say 4, 5, and 12. I have a small sentence "Mary had a little lamb."
how can I pass this information from HTML to a php function without user input (here no input is needed since the numbers and the sentence is fixed)

Please note I am beginner so a detailed reply would be appreciated.

vinay