title: php echo time as default
body: <p>I am creating a php code which i am trying to echo a default value.</p>
  
  <p>What should i be using else, elseif or can i give it a default value of the server date.</p>
  
  <p>This is part of the code im working on at the moment.</p>
  
  <pre><code>&lt;?php
  if ($_SERVER["REQUEST_METHOD"] == "POST"){
      for($i=0; $i&lt;1; $i++){
  echo "&lt;p&gt;".date("l jS F Y", mktime(0, 0, 0, 12, 25, ($_POST["year"])))."&lt;/p&gt;";
      } 
  }   
  ?&gt;
  </code></pre>
  
  <p>What i have tried:</p>
  
  <pre><code>&lt;?php
  if ($_SERVER["REQUEST_METHOD"] == "POST"){
      for($i=0; $i&lt;1; $i++){
      echo "&lt;p&gt;".date("l jS F Y", mktime(0, 0, 0, 12, 25, ($_POST["year"])))."&lt;/p&gt;";
      } else {
      print date("l jS F Y");
      }
  }   
  ?&gt;
  </code></pre>