Forum Moderators: open
Page:
<html>
<head>
<script language="Javascript">
function formatDate(strField){
var oLen = strField.value.length;
if(oLen == 2){strField.value += "/";}
if(oLen == 5){strField.value += "/";}
}
function change_View(){
frames.location.href="sn_view.php?epid=<=$epid?>&c=1";
}
</script>
</head>
<body bgcolor="#addfff" vlink="#000000" alink="#000000" link="#000000>
<form name="sn_add" method="post" action="sn_update.php?epid=<?=$epid?>">
<table width="100%" border="0" bordercolor="#000000" cellspacing="0" cellpadding="0">
<tr>
<td>
<b><center><font size="4">Skilled Nurse Visit</center></b>
</td>
</tr>
<tr>
<td align="center">
<input type="submit" value="Save Visit">
<input type="button" value="View/Edit" onclick="change_View()">
</td>
</tr>
</table>
<br>
<table width="100%" border="0" bordercolor="#000000" cellspacing="0" cellpadding="0">
<tr>
<td>
(body of page)
</td>
</tr>
</table>
</form>
</body>
</html>
<body bgcolor="#addfff" vlink="#000000" alink="#000000" link="#000000>
should be
<body bgcolor="#addfff" vlink="#000000" alink="#000000" link="#000000">
This is causing errors in how the browser parses the page and thus is preventing the form from working properly.
Validation of your page would have helped you spot this error straight away.