Results 1 to 5 of 5

Thread: trouble validating a form

  1. #1
    Join Date
    May 2009
    Location
    Greensboro, GA
    Posts
    163
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default trouble validating a form

    I have code that gives 1 validation (xhtml 1.0 strict) error about using "name" inside a form. Below is the form line:

    HTML Code:
    <form name="catadoptionform" method="post"  action="catadoption.php" onsubmit="validate();">
        <table>
          <tr>
          ....
          </tr>
        </table>
    </form>
    What do I use instead on "name".
    Thanks

  2. #2
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    have you already try to remove ; in the back of your validate()
    Code:
    <form name="catadoptionform" method="post"  action="catadoption.php" onsubmit="validate()">
        <table>
          <tr>
          ....
          </tr>
        </table>
    </form>
    you see my code up there, there's no ; symbol behind the validate()

    i hope it will help

  3. #3
    Join Date
    May 2009
    Location
    Greensboro, GA
    Posts
    163
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Thanks but it still gives the same error:

    Line 119, Column 15: Attribute "name" exists, but can not be used for this element.
    <form name="catadoptionform" method="post" action="catadoption.php" onsubmit=✉

  4. #4
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    If it doesn't affect anything else you could use id="catadoptionform" instead.

  5. #5
    Join Date
    May 2009
    Location
    Greensboro, GA
    Posts
    163
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default resolved

    Thanks. That worked

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
  •