title: Pass variables to another php page using a button
body: <p>So if someone is logged in my script reads the values and stores it and sets it as variables then I'm trying to make a registration page for something that members can register in. <br><br>
  The script is simple</p>
  
  <pre><code>     &lt;div id="english1"&gt;&lt;p id="english1p"&gt;تأكد من بياناتك ثم اضغط رز الموافقة&lt;/p&gt;&lt;br&gt;
       &lt;form class="register2" action="includes/register2.inc.php" method="post" name="register2form"
       &lt;p class="username"&gt;اسم المستخدم: &lt;?php echo htmlentities($_SESSION['username']); ?&gt;&lt;/p&gt;
       &lt;p class="email"&gt;الايميل: &lt;?php echo htmlentities($_SESSION['email']); ?&gt;&lt;/p&gt;
       &lt;p class="age"&gt;السن: &lt;?php echo htmlentities($_SESSION['age']); ?&gt;&lt;/p&gt;
       &lt;p class="coursetype"&gt;الكورس المراد التسجيل فيه: &lt;?php echo $coursename; ?&gt;&lt;/p&gt;
       &lt;p class="paymethod"&gt;طرق الدفع:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;طريقة&lt;/li&gt;
                                            &lt;li&gt;طريقة&lt;/li&gt;
                                            &lt;li&gt;طريقة&lt;/li&gt;
                                        &lt;/ol&gt;
                                        &lt;p class="sure"&gt;للتأكيد اضغط تسجيل&lt;/p&gt;
       &lt;input class="register2button"
              type="button"
              value="تسجيل" 
              onclick="" /&gt;
       &lt;/div&gt;
  </code></pre>
  
  <p>Ignore the letters you don't understand, it's arabic.<br>
  <br>So the script reads variables and then I want when the member clicks the submit button, the page <code>POST</code> the variables to <code>includes/register2.inc.php</code> without input as the variables are already set.<br><Br>
  How can I do that?</p>