Results 1 to 2 of 2

Thread: validator error

  1. #1
    Join Date
    Nov 2005
    Posts
    132
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default validator error

    Hi
    can you help.. My error via the html validator says "Error Line 92 column 18: end tag for element "FORM" which is not open.
    </form>

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem. "

    This happens in the 4 forms in my whole page
    Here is a snippet of the code. Sorry, I cannot publish the whole page code as its a new promotion under wraps. Can anyone shed some light on why my form tag is failing? I can't get my head around what the validator is telling me. thanks

    <div class="product_library" id="product_library">
    <div align="left">
    <table width="621" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="248" align="right"><img src="../../images/baths/windsor.gif" alt="windsor bath" width="248" height="288"></td>
    <td width="373" valign="top"><p align="right"><strong><span class="style9"><strong>WINDSOR ROLL TOP BATH </strong></span><span class="style9 style4"><br>
    </span></strong><span class="style11">WAS &pound;450</span><strong> - <span class="style25">NOW &pound;99</span></strong> inc vat.
    <p align="right">&bull; Double skinned acrylic <br>
    &bull; Disctinctive high quality foot/stand fittings <br>
    &bull; Freestanding design <br>
    &bull; Available WITH or WITHOUT tap holes
    <p align="right"><form action=http://www.romancart.com/cart.asp method=post>

    <div align="right">
    <input type=hidden name=storeid value=******>
    <input type=hidden name=itemcode value='windsor'>
    Please choose your bath
    :<br>
    <select name=itemname2>
    <option value="1700x750 WITH tap holes ">1700x750 with tap holes &#163;99</option>
    <option value="1800x800 WITH tap holes ">1800x800 with tap holes &#163;99</option>
    <option value="1700x750 WITHOUT tap holes ">1700x750 without tap holes &#163;99</option>
    <option value="1800x800 WITHOUT tap holes ">1800x800 without tap holes &#163;99</option>
    </select>
    <br>
    <input type=submit value='Add to Basket'>
    </div>
    </form>
    </tr>
    </table>
    <p><br>
    </p>
    </div>
    </div>

    many thanks in advance

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Use quotes:

    Code:
    <form action="http://www.romancart.com/cart.asp" method="post">
    Many validation errors can be solved by using the proper syntax, in this case - using quotes for all literal values.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •