Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language:
Expertise: Beginner
Nov 18, 1998

Revive Forms That Break When Inserted Into a Table

Many times a form that works perfectly well on a table-less Web page stops working when inserted into a table cell. To make the form work again, move the <FORM> and </FORM> tags so that they span the <TABLE></TABLE> tags, as shown in the following HTML code:
 
<BODY BGCOLOR="#FFFFFF" TEXT="#333333" LINK="#0000CC" VLINK="#CC0000" ALINK="#6666FF">
<FORM ACTION="validate.html">
  <TABLE WIDTH="50%" BORDER="1">
    <TR> 
      <TD> 
        <H2 ALIGN="center">Spam Removal Form</H2>
      </TD>
    </TR>
    <TR> 
      <TD> 
        <P>Enter full name 
          <INPUT TYPE="text" NAME="name">
          <BR>
          Enter e-mail address 
          <INPUT TYPE="text" NAME="email">
          <BR>
          I do not want to receive spam e-mail 
          <INPUT TYPE="checkbox" NAME="nospam" VALUE="checkbox">
        </P>
        <P> 
          <INPUT TYPE="submit" NAME="Submit" VALUE="Submit" ONCLICK="processForm()">
        </P>
      </TD>
    </TR>
  </TABLE>
</FORM>
</BODY>
Erik Goetze
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap