Wednesday, 15 September 2010

php - how post method of form actually work behind scene -


I have both received / posted and have information about the differences between both security and security for both .

Okay, when we get the method, we're getting data from the query string and it's okay.

Now, for the post:

We call one .php, we are giving variable names that are in the form with method = "post" and we get it $ _POST ['Name'] with two.php, where this name is actually stored between these 2 pages and from where it actually comes and able to get it with a $ _POST ?

"post-text" itemprop = "text">

value In the request is deposited.

  • Headers
  • Body
  • Important difference between a GET and a post. The matter is that GET has no physical body, so any data you want to include in GET is required to be included on the address. A post, however, is a body and contains key / value pairs for that body's values.

    Take a look at your browser's debugging tool and check for requests / reactions when interacting with the server. For a post request, you will see that you can actually inspect the values ​​(which you may want to consider when discussing the "security" of these requests. ..)

    The prices are not specially "stored" anywhere they work almost exactly as they do a GET request. They are just in the second part of the request format.


    No comments:

    Post a Comment