PHP Captcha System
<p>Okay, so I am trying to make my own captcha system.  I have two pages, the form page, and the form action.  Here is my codes:</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Captcha&lt;/title&gt;
&lt;center&gt;
&lt;form method="POST" action="captcha.php"&gt;
&lt;label&gt;Entered Text:  &lt;/label&gt;&lt;input type="text" name="captcha"&gt;
&lt;input type="submit" name="submit" value="Submit Captcha!"&gt;
&lt;/form&gt;
&lt;/center&gt;
&lt;/head&gt;
&lt;/html&gt;
&lt;?php
$firstdigit = rand(1, 9);
$seconddigit = rand(27, 105);
$lastdigit = rand(1050, 9515);
$middle = rand(1000, 20000);
$captcha = "&lt;b&gt;&lt;center&gt;&lt;font face=\"Arial\"&gt;AX-$firstdigit-X-$seconddigit-K3I$middle-AN3Z-$lastdigit&lt;/font&gt;&lt;/center&gt;&lt;/b&gt;";
echo "$captcha";
?&gt;
</code></pre>

<p>and then the next:</p>

<pre><code>&lt;?php
$captcha2 = $_POST['captcha']; //This is the input field
$submit = $_POST['submit'];  //This is Submit
if ($submit) {
  if ($captcha2) {
    echo "Everything is good."; //Echo'd if everything is good
   } else {
  echo "Please fill in all fields."; //Echo'd if $captcha isn't filled out
   }
 } else {
echo "Direct access not allowed.  Please click submit.";   //Echo'd if  submit is not pressed, and they access this directly.
}
?&gt;
</code></pre>

<p>How can I take the $captcha variable from the other form and put it onto the captcha.php page?  I figured that $captcha has lots of variables put into one, so how</p>
