Reading an hidden input field from form of a different PHP site
<p>I have the following hidden input in a form:</p>

<pre><code>&lt;input type="hidden" name="token" value="&lt;?php echo $token; ?&gt;"&gt;
</code></pre>

<p>I am posting this input value to another PHP page for processing through a form, however, when I try to read the value of the input field using <code>$_POST["token"]</code>, I find it empty. I looked all over the Internet for a solution, but the only one I found is to place everything into one page (the form together with the processing code); but I want the processing code to be in a separate page.</p>

<p>This is the markup:</p>

<pre><code>&lt;form id="registerform" name="registerform" method="post"&gt;
  First name:&lt;br&gt;
  &lt;input type="text" name="firstname"&gt;&lt;br&gt;
  Last name:&lt;br&gt;
  &lt;input type="text" name="lastname"&gt;
  &lt;input type="hidden" name="token" value="&lt;?php echo $token; ?&gt;"&gt;
&lt;/form&gt;
</code></pre>

<p>The problem here is that I can read the values of the first name and last name. but the value of the hidden input is not accessible.</p>