Inheritance of POST variables collected via CORS
<p>In <code>get.php</code> I have variables collects from a post. see bellow.</p>

<p><strong>get.php</strong></p>

<pre><code>    $name = $_POST['name'];
    $age = $_POST['age'];
    $email = $_POST['email'];
</code></pre>

<p>These are posted from a different website via Ajax and CORS </p>

<p><strong>different website</strong></p>

<pre><code>  $("#abi_test").click(function (event) {
            $.post(
                "http://website.com/get.php",
                {
                    name: "Tom",
                    age: "30",
                    email: "johnsmith@gmail.com",
                },
                function (data) {
                    $('#stage').html(data);
                }
            );
</code></pre>

<p>I now need to use these variables posted to <code>get.php</code> in a different page on the same website as <code>get.php</code></p>

<p>This Is what I have tried</p>

<p><strong>Pageb.php</strong></p>

<pre><code> &lt;?php header('Access-Control-Allow-Origin: *'); ?&gt;
&lt;?php

include 'get.php';

echo "your email $email"; // A green apple
?&gt;
</code></pre>