If you need to transfer data when redirecting without displaying the data in the URL, you can use $ _SESSION, first store the data in the session, and then redirect the page, after the redirection get the data from the session and destroy the session data.
OK, if you need to transfer data to another site without specifying in the URL, you will have to use Javascript instead ... for example, transfer data to payPal. just create a form and write javascript code to submit the form automatically when the page loads. The following is an example code:
<form name="myform" action="handle-data.php"> Search: <input type='text' name='query' /> <a href="javascript: submitform()">Search</a> </form> <script type="text/javascript"> function submitform() { document.myform.submit(); } </script>
source share