title: Date in a form and validate
body: <p>I am a little stuck here how to write a code for current date of the server and validate them.</p>
  
  <p>So basically on one file is the form.php and i have to write the code for current date of the server in dd/mm/yy and this can be edited by the user. The date should appear in a form format for example on the web browser should appear date: [23/9/2012].</p>
  
  <p>and on the other file which is the process.php I have to validate the date.</p>
  
  <p>so for my form.php this is what i wrote so far:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
   &lt;?php
      if (isset ($_POST["date"])){
      $date = date("d/m/y"($_POST["date"]));
      echo $date;
      }
  ?&gt;
  &lt;form action="form.php" method="POST"&gt;
  Date: &lt;input type="text" name="date" value="Date" /&gt;
  
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>what it appear on the web browser for date is only date:[date] just the word date but not the date. I've been stuck for an hour for this.</p>