Forms not validating

liunx

Guest
I keep trying to validate my pages in XTHML 1.0 Trans, and my forms are throwing errors. <br />
<br />
It says the form object cannot exist there, or rules do not allow the form to be there.<br />
<br />
the same is occurring for my h5's. may hap I am just not hip on html 4.0+rules and these elements cannot exist in spans?<br />
<br />
<br />
<br />
<br />
<?xml version="1.0" encoding="iso-8859-1"?><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head><br />
<link rel="stylesheet" href=http://www.webdeveloper.com/forum/archive/index.php/"style.css" type="text/css" /><br />
<title>:: Admin Page</title><br />
</head><br />
<!-- #include virtual="include/QueryDB.asp" --><br />
<!-- #include virtual="include/functions.asp" --><br />
<body class="splash"><br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"/images/shields/52dfw.gif" class="splashShield" alt="" /><br />
<div class="content"><br />
<h2 align="center">Suspense Creation Page</h2><br />
<hr class="sep" /><br />
<div class="navigationlinks"><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"default.asp" class="navigationlinks">Main</a>&raquo; <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://intranet" class="navigationlinks">Intranet</a>&raquo; <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"create_suspense.asp" class="navigationlinks">Create New Suspense</a>&raquo;<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"feedback.asp" class="navigationlinks">Send Feedback</a><br />
</div><br />
<br />
<br /><br /><br /><br /><br /><br /><br />
<p class="intro">Welcome to the 52d Fighter Wing Suspense Creation page in order to create a new suspense, you must provide a short title description (4 words or so), and type out the suspense details in the remarks section of this form. Also, a date that this suspense is due must be provided.</p><br />
<span style="width:300px; height:250px;"><br />
<form id="frm52FW" action="input_suspense2db.asp" method="post"><br />
<input type="hidden" name="intSuspenseID" value="<%= Session("Suspense_ID")%>" /><br />
<h5>Short Title:</h5><br />
<input type="text" name="txtTitle" size="35" tabindex="1" /><br /><br />
<h5>Remarks:</h5><br />
<textarea onclick="this.value=''" onfocus="this.value=''" class="txtarea" rows="5" cols="30" name="txtremarks" tabindex="2">Enter Remarks here</textarea><br />
</form><br />
</span><br />
<span style="width:300px; height:250px; position:relative; top:2px;"><br />
<h5>Select the groups that will receive this tasking:</h5><br />
<form id="frmAddNewGroup" method="post" action="modGroup.asp?intAction=1"><br />
<select name="select_Groups" size="1" tabindex="3">some server side code</select><br />
<input type="submit" style="font-size:10px" value="Add" tabindex="4" /><br />
</form> more server side code</span><br />
</div><br />
</body><br />
</html><!--content-->Here's a validating version.<br />
I changed the ">>" in the menu,<br />
the nested "" in value="<%= Session('Suspense_ID')%>"<br />
replaced spans with divs with some CSS to adjust the layout.<br />
The row of <br /> should be changed for CSS in class="navigationlinks".<br />
The first line, xml declaration, is not compulsory and puts IE into quirks mode.<br />
<br />
<?xml version="1.0" encoding="iso-8859-1"?><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head><br />
<link rel="stylesheet" href=http://www.webdeveloper.com/forum/archive/index.php/"style.css" type="text/css" /><br />
<title>:: Admin Page</title><br />
</head><br />
<!-- #include virtual="include/QueryDB.asp" --><br />
<!-- #include virtual="include/functions.asp" --><br />
<body class="splash"><br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"/images/shields/52dfw.gif" class="splashShield" alt="" /><br />
<div class="content"><br />
<h2 align="center">Suspense Creation Page</h2><br />
<hr class="sep" /><br />
<div class="navigationlinks"><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"default.asp" class="navigationlinks">Main</a>> ><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://intranet" class="navigationlinks">Intranet</a>> ><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"create_suspense.asp" class="navigationlinks">Create New Suspense</a>> ><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"feedback.asp" class="navigationlinks">Send Feedback</a><br />
</div><br />
<br />
<br /><br /><br /><br /><br /><br /><br />
<p class="intro">Welcome to the 52d Fighter Wing Suspense Creation page in order to create a new suspense, you must provide a short title description (4 words or so), and type out the suspense details in the remarks section of this form. Also, a date that this suspense is due must be provided.</p><br />
<div style="float:left; width:300px; height:250px;"><br />
<form id="frm52FW" action="input_suspense2db.asp" method="post"><br />
<h5 style="margin-top:0px; border:0px solid #00000;">Short Title:</h5><br />
<input type="text" name="txtTitle" size="35" tabindex="1" /><br /><br />
<h5>Remarks:</h5><br />
<textarea onclick="this.value=''" onfocus="this.value=''" class="txtarea" rows="5" cols="30" name="txtremarks" tabindex="2">Enter Remarks here</textarea><br />
<input type="hidden" name="intSuspenseID" value="<%= Session('Suspense_ID')%>" /><br />
</form><br />
</div><br />
<div id="secondform"><br />
<h5 style="margin-top:0px; border:0px solid #00000;">Select the groups that will receive this tasking:</h5><br />
<form id="frmAddNewGroup" method="post" action="modGroup.asp?intAction=1"><br />
<select name="select_Groups" size="1" tabindex="3"><br />
<option value="0">server side options</option><br />
</select><br />
<input type="submit" style="font-size:10px" value="Add" tabindex="4" /><br />
</form> more server side code</div><br />
</div><br />
</body><br />
</html><!--content-->The SPAN element is an inline element and as such cannot contain block level elements.<!--content-->
 
Back
Top