title: Only show form if there is PHP
body: <p>I'm new to PHP. Iv created a small php script. Basically I have a form and inside of it I have a function called show_sent:</p>
  
  <pre><code>        &lt;form method="post" action="contact.php" class="formstyle"&gt;
              &lt;h2&gt;Formulaire de contact : &lt;/h2&gt;
              &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  
      &lt;?
  function show_sent(){
      ?&gt;
      &lt;p&gt;Sent&lt;/p&gt;
  
              &lt;?
  } // the function finishes here
  ?&gt;
  </code></pre>
  
  <p>.......</p>
  
  <p>I was hoping that it would only show the 'Sent' text when I call that function. How could I do this?
  Thanks</p>
  
  <p>contact.php is the same page as the form</p>