I have a web page (see code below) where I want to display the date & time below the submit button, after skipping one blank line. No matter what I've tried, the date & time keep coming out in the lower right next to the submit button. (You can view the page at ). I'm new to PHP & HTML, so please be kind. If anyone (or everyone ) can point out what I'm doing incorrectly (along with any other tips you might like to pass along), I'd greatly appreciate it!
Peter V.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!-- ADD_USER.HTML - Updated: Monday, September 01, 2008 - 7:23 PM -->
<head>
<title>Add User</title>
</head>
<body>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="adduserf.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="4"><strong>
ADD USER</strong></td>
</tr>
<tr>
<td width="78">Username</td>
<td width="6">:</td>
<td width="294"><input name="myusername" type="text" id="myusername"></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><input name="mypassword" type="password" size="8" maxlength="8" id="mypassword"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Login"></td>
<td bgcolor="CYAN">
<?php
//Adjust time forward by one hour (CST to EST)
$dtm_adjustment = 60 * 60;
$adj_now = time() + $dtm_adjustment;
$today = date("l F dS, Y h:i A", $adj_now);
echo "$today EDT";
// echo "Vanderhaden Consulting - $today EDT";
?>
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
</body>
</html>
PETERV
Syracuse, NY &
Boston, MA
Peter V.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!-- ADD_USER.HTML - Updated: Monday, September 01, 2008 - 7:23 PM -->
<head>
<title>Add User</title>
</head>
<body>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="adduserf.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="4"><strong>
ADD USER</strong></td>
</tr>
<tr>
<td width="78">Username</td>
<td width="6">:</td>
<td width="294"><input name="myusername" type="text" id="myusername"></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><input name="mypassword" type="password" size="8" maxlength="8" id="mypassword"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Login"></td>
<td bgcolor="CYAN">
<?php
//Adjust time forward by one hour (CST to EST)
$dtm_adjustment = 60 * 60;
$adj_now = time() + $dtm_adjustment;
$today = date("l F dS, Y h:i A", $adj_now);
echo "$today EDT";
// echo "Vanderhaden Consulting - $today EDT";
?>
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
</body>
</html>
PETERV
Syracuse, NY &
Boston, MA