View Full Version : Form to a jsp page!

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

<title>name to page script</title>
<script language="JavaScript"><!--

function doBoardSubmit() {
with (document) {
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>
<input name="formsubmit" type="hidden" value="false">
<td align=right>Name:</td>
<td><input name="name" type="text" size="16" maxlength="16"></td>
<td align=center colspan=2><a href="javascript:doBoardSubmit()">Enter&nbsp;</a></td>

<table width="420">




12-13-2003, 02: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