<p>I am trying to include a value from a database table within the value element of an input field.<br>
This is what I have, but it is not working:</p>

<pre><code>?&gt;&lt;input type="text" size="10" value="&lt;?= date("Y-m-d", 
strtotime($rowupd['upcoming_event_featured_date'])) ?&gt;" name="upcoming_event_featured_date" 
id="keys"/&gt;&lt;?php
</code></pre>

<p>I have done this before, but I usually print it out like this:</p>

<pre><code>print '&lt;input type="text" size="10" value="'.date("Y-m-d", 
strtotime($rowupd['upcoming_event_featured_date'])).'" name="upcoming_event_featured_date" 
id="keys"/&gt;';
</code></pre>

<p>What is the appropriate way of doing this without using <code>print ''</code>?</p>

You can use the
short_open_tag
ini directive to turn on the <?= shortcut for printing.
If that is not available, you must use either print or echo to accomplish this.
You can try:
```
```
ini_set('short_open_tag', true);
```
```