Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forrms. Problem with Validation 1

Status
Not open for further replies.

gwillr

IS-IT--Management
Nov 4, 2003
267
CA
I have a form in the following table, which works fine, and displays correctly., BUT, will not validate.

Code:
<table class="splashtable" cellpadding="0" cellspacing="0">
					
						<tr>
							<td class="td1">
							</td>
						</tr>
      			
      				
      					<tr>
      						<td class="td2"><font class="headinglrgyel">[Contact Me]</font><hr class="hryellow" />
      						</td>
      					</tr>

						<tr>
							<td class="td3">

								<table class="contactus" cellpadding="0" cellspacing="0">
                                              
                                	<tr>
                                    	<td class="tdcontactus1" colspan="2">
											<font class="contentyel">Comments, Questions, And Feedback</font><br /><br />
										</td>
                              		</tr>
                                              
                                    <tr>
                                    	<td class="tdcontactus2">
                                    		<form method="post" action="contactprocess.asp">
                               				<font class="contentred">Feedback:&nbsp;</font><br />
                               				<a class="helpcontentyel" href="javascript:popUp('help1.asp')">[?]</a>&nbsp;&nbsp;
                               			</td>
                                          		
                                        <td class="tdcontactus3">
                               				<textarea rows="6" name="contact" cols="61" style="border:1px solid #282484; vertical-align: top; font-size: 13px; font-family: Verdana; overflow: auto; color:#282484"></textarea>
                               			</td>
                                    </tr>
                                              
                                    <tr>
                                    	<td class="tdcontactus4" colspan="2">
                                    	<font class="contentred">Your Name:&nbsp;</font>
                                    	<input type="text" size="36" name="contactname" style="border:1px solid #282484; font-size: 13px; font-family: Verdana; color: #282484"/>
                                    	</td>
                                   	</tr>
                                              
                                    <tr>
                                    	<td class="tdcontactus5" colspan="2">
                               				<font class="contentred">Email Address:&nbsp;</font>
                               				<input type="text" size="36" name="contactemail" style="border:1px solid #282484; font-size: 13px; font-family: Verdana; color: #282484"/>
                               			</td>
                                   	</tr>
                                    
                                    <tr>
                                    	<td class="tdcontactus6" colspan="2">
                                    		<input type="submit" value="[submit]" name="contactsubmit" style="border-style: solid; border-width: 0; color: #CC0000; font-size: 16px; font-family: Verdana; font-weight: bold; background-color: #282484" />
                                    		</form>
                                    	</td>
                             		</tr>
                                </table>

The error is with the <form> tags. It is telling me that they are not closed, or not open.

I think that it is because of the fact that the form tags are used across cells???

Any insight on how to get this fixed??

The actual page is located at


Gary

 
You cannot span form across several cells. You have two options:

1. place form within a single cell,
2. place form around the whole table.

Choose the one that is better for you.
 
Vragabond, Thanks once again for the prompt response. I placed the tags outside the table, and the form works great. the HTML is now valid as well! Excellent!

Thanks again,

Gary

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top