Text from textbox appearing on top of the page after form submission
<p>Thanks for helping me guys. I have another question. 
In my previous question I asked how to make the textbox message to show at the top of page after form submission.
I managed to do this thanks to you guys.
Next question is how to make this happen at least 8x times? </p>

<pre><code> &lt;?php

 include('header1.php');

 if(isset($_POST['submit']) &amp;&amp; $_POST['submit']=='Submit'){
 message=$_POST['message'];
$name=$_POST["name"];
echo "&lt;center&gt;";
echo "&lt;div&gt;" . $name . "&lt;br /&gt;" . $message ."&lt;/div&gt;"; 
echo "&lt;/center&gt;";


    if(isset($_POST['submit']) &amp;&amp; isset($_POST['prevmsg']) &amp;&amp;      isset($_POST['prevname'])){

    echo "&lt;center&gt;";
    echo $_POST['prevname'];
    echo "&lt;br/&gt;";
    echo $_POST['prevmsg'];
    echo "&lt;/center&gt;";   
 }

 ?&gt;

&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body style="position:center"&gt;
&lt;form method="POST" action="&lt;?=$_SERVER["PHP_SELF"]?&gt;"&gt;

        &lt;table&gt;
                    &lt;tr&gt;
                        &lt;th&gt;
                            &lt;label for="name"&gt;Name&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                            &lt;input type="text" name="name" id="name"&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;

    &lt;input type="hidden" name="prevname" value="&lt;?=$name?&gt;"/&gt;

                    &lt;tr&gt;
                        &lt;th&gt;
                            &lt;label for="message"&gt;Message&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                            &lt;textarea name="message" id="message"&gt;&lt;/textarea&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;    
    &lt;input type="hidden" name="prevmsg" value="&lt;?=$message?&gt;"/&gt;

        &lt;/table&gt;
&lt;input type="submit" name="submit" value="Submit"/&gt;

 &lt;/form&gt;
  &lt;/body&gt;
 &lt;/html&gt;

  &lt;?php

   } else {  

   ?&gt;

  &lt;html&gt;

  &lt;head&gt;  

  &lt;/head&gt;

  &lt;body&gt;
  &lt;form method="POST" action="&lt;?=$_SERVER["PHP_SELF"]?&gt;"&gt;

        &lt;table&gt;
                    &lt;tr&gt;
                        &lt;th&gt;
                            &lt;label for="name"&gt;Name&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                            &lt;input type="text" name="name" id="name"&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;


                    &lt;tr&gt;
                        &lt;th&gt;
                            &lt;label for="message"&gt;Message&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                            &lt;textarea name="message" id="message"&gt;&lt;/textarea&gt;
                     &lt;/td&gt;
                    &lt;/tr&gt;
        &lt;/table&gt;
                     &lt;input type="submit" name="submit" value="Submit"/&gt;

 &lt;/form&gt;
 &lt;/body&gt;
 &lt;/html&gt;


 &lt;?php } 
include('inc/footer.php');
 ?&gt;
</code></pre>
