phppostdata-transfer

Sending POST data without form


Can i send for example a string or another piece of information to another .php file without it being exposed [thus not by GET but by POST conform to what i know] without using a form?


Solution

  • If you don't want your data to be seen by the user, use a PHP session.

    Data in a post request is still accessible (and manipulable) by the user.

    Checkout this tutorial on PHP Sessions.