OK, here is my code:
<HEAD>
<BODY background="sky01.jpg">
<TITLE>PIREP INPUT FORM</TITLE>
<center><h2>AUTOMATED PIREP REPORTING FORM</h2></center>
<b>Please complete all information in the formats described next to the input boxes. Your data will be automatically added to your flight log and your totals updated.<P>
<?
$today = getdate();
$month = $today['mon'];
$day = $today['mday'];
$year=$today['year'];
?>
<form method="post" action="script.php">
DATE: <input type="text" name="date" value="<?php echo $year / $month / $day; ?>">
<B>FORMAT='YYYY-MM-DD'</b><br>
NAME: <input type="text" name="name"><br>
MACID: <input type="text" name="macid">USE YOUR FULL CALLSIGN "MACxxx"<br>
FLIGHT TIME: <input type="text" name="hours">Enter as a decimal, rounded to one decimal place. <br>If you are flying a charter flight, please double your hours before entering the total here.<br>
TYPE OF FLIGHT: <SELECT name="type">
<OPTION SELECTED>Macnet
<OPTION>Bushnet
<OPTION>Vatsim
<OPTION>Offline
<OPTION>Charter
<OPTION>Codeshare
<OPTION>Club Event
</select><BR>
DEPARTURE: <input type="text" name="departure"><b>USE ICAO CODE ONLY</b><br>
DESTINATION: <input type="text" name="destination"><b>USE ICAO CODE ONLY</b><br>
CHARTER #: <input type="text" name="charterno"><br>
CHARTER PAY: $<input type="text" name="charterdoll"><br>
COMMENT: <br><TEXTAREA name="comment" rows="10" cols="30"></TEXTAREA><br>
<input type="submit" name="submit" value="SUBMIT ">
</form>
</html>
I am trying to get the current date to appear as the 'deafult' in the filed entry box for Date: with the ability to change the date if needed.
What I am getting in the form is the "<?php echo $year / $month / $day; ?>" showing inside the entry field. What am I doing wrong?