Jump to content

[SOLVED] REALLY basic php question


Benjigga

Recommended Posts

I've read through a few tutorials and two books and I haven't found anything to explain this.

 

What is the difference between the function $POST and $_POST? What is the purpose of the underscore?

 

As far as I cal tell, $POST is for storing data and $_POST is for retrieving? Can someone please tell me if I'm right?

 

Link to comment
https://forums.phpfreaks.com/topic/120290-solved-really-basic-php-question/
Share on other sites

$POST is just a variable name and has no special significance. If you saw this in something related to a form, then it was a typographical error.

 

$_POST is an array that is populated from form data that was submitted using the post method.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.