Skip to content
Advertisement

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?

Advertisement

Answer

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.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement