Sending POST data without form

Samuel picture Samuel · Sep 23, 2010 · Viewed 180.6k times · Source

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?

Answer

Stephen Holiday picture Stephen Holiday · Sep 23, 2010

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.