...

View Full Version : Form to a jsp page!



nicknax11
12-07-2003, 11:17 AM
Does anyone know whats wrong with this script?
----------------------------------------------------------------------


<html>
<head>
<title>name to page script</title>
<SCRIPT LANGUAGE="JavaScript"
</head>
<script language="JavaScript"><!--


function doBoardSubmit() {
with (document) {
error="";
if (board.name.value.length<3) {
error+="Name is too short (must be at least 3 characters)\n";
}

if (error.length>0) {
alert("Please correct the following:\n"+error)
} else {
return board.submit();
}
}
}



// --></script>
<body onLoad="checkForCookie()">




<form action="tournament2.jsp" enctype="x-www-form-urlencoded" method="POST" name="board">
<b>Type name to appear under people</b>
<table cellpadding=2>
<tr>
<input name="formsubmit" type="hidden" value="false">
<td align=right>Name:</td>
<td><input name="name" type="text" size="16" maxlength="16"></td>
</tr>
<td align=center colspan=2><a href="javascript:doBoardSubmit()">Enter&nbsp;</a></td>
</table>
</form>



<table width="420">
<tr><th>People</th></tr>

<tr><td>nicknax11</td></tr>

</table>

</body>
</html>

A1ien51
12-13-2003, 03:03 PM
You enjoy posting from site to site...

Where is it failing, we are not superheros...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum