title: Passing php value to a datetime-local default value
body: <p>I searched the site for this and came up with this <a href="https://stackoverflow.com/questions/38104837/datetime-local-value-doesnt-appear-on-input-tag">datetime-local value doesn&#39;t appear on input tag</a> but it's not working for me.</p>
  
  <p>I have the follwoing php code called nowdatetime.php:</p>
  
  <pre><code>&lt;?php 
  echo date('Y-m-d\TH:i:s'); 
  ?&gt;
  </code></pre>
  
  <p>and I'm trying to pass this to an HTML datetime-local value:</p>
  
  <pre><code>&lt;input type='datetime-local' name='todate' step='1'  value="/scripts/stats/nowdatetime.php" required/&gt;
  </code></pre>
  
  <p>but nothing happens.  I also changed the datetime-local to a text such as this:</p>
  
  <pre><code>&lt;input type='text' name='todate' step='1'  value="/scripts/stats/nowdatetime.php" required/&gt;
  </code></pre>
  
  <p>an all that shows is the script path.</p>
  
  <p>How can I get the value from the php script to e the default for the datetime-local?  I'll try anything.</p>