displaying the function of php
<p>i have a php code here and wondering how can this display what you have wrote in the box: 
i did this and it did display this one: "$input"; ?>  "</p>

<pre><code> &lt;html&gt;
 &lt;head&gt;&lt;/head&gt;
 &lt;body&gt;
 &lt;form action="message.php" method="post"&gt;
 Enter your message: &lt;input type="text" name="msg" size="30"&gt;
 &lt;input type="submit" value="Send"&gt;
 &lt;/form&gt;
 &lt;/body&gt;
 &lt;/html&gt; 
</code></pre>

<p>===============
this is my message.php</p>

<pre><code>   &lt;html&gt;
   &lt;head&gt;&lt;/head&gt;
   &lt;body&gt;

     &lt;?php
     // retrieve form data
     $input = $_POST['msg'];
      // use it
     echo "You said: &lt;i&gt;$input&lt;/i&gt;";
     ?&gt;

    &lt;/body&gt;
    &lt;/html&gt; 
</code></pre>

<p>=======</p>

<p>This is what i get as view page source: </p>

<pre><code>        &lt;html&gt;
        &lt;head&gt;&lt;/head&gt;
         &lt;body&gt;

          &lt;?php
           // retrieve form data
          $input = $_POST['msg'];
        // use it
         echo "You said: &lt;i&gt;$input&lt;/i&gt;";
            ?&gt;

            &lt;/body&gt;
             &lt;/html&gt; 
</code></pre>
