Displaying messages at top of the form in PHP
<p>I want to display messages at top ids "MessageError" and "MessageOK" according to POST results. Example:</p>

<pre><code>&lt;p id="MessageError"&gt;&lt;/p&gt;
&lt;p id="MessageOK"&gt;&lt;/p&gt;

&lt;form name="Form" method="post" action="&lt;?php $_SERVER[ 'PHP_SELF' ]; ?&gt;" enctype="multipart/form-data" accept-charset="UTF-8" id="Form"&gt;
  &lt;input type="text" name="test" value="" /&gt; &lt;input type="submit" name="Submit" value="" /&gt;
&lt;/form&gt;

&lt;?php
if ( isset ( $POST[ 'Submit' ] ) ) {
  if ( $_POST[ 'test' ] ) {
    // Echo message at "MessageOK
  }
  else {
    // "Echo message at "MessageError"
  }

}
?&gt;
</code></pre>

<p>Any help will be appreciated.</p>

<p>Thank you.</p>
