Forum Moderators: open

Message Too Old, No Replies

Submit Button Not Working

         

theriddla1019

7:44 pm on Oct 4, 2004 (gmt 0)

10+ Year Member



I have a rather weird problem, my submit button is not working on my form and for the life of me i can't figure this out. Ive built 500+ pages and never run into something like this before. Ive checked and double checked my work and everything seems right, just looking for some fresh eyes to see if anyone can pick up something ive overlooked.

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>

Krapulator

11:22 pm on Oct 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're missing a closing quote on the link attribute in the body tag:

<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.