I want to transfer some data in a variable between two sites using PHP. In my Javascript, When a button clicks, it goes to a php file that saves an image and then i want to redirect to other site and sending it the image name. I have image name in a variable and I want to send it.
So how can i do that securely in PHP?