Results 1 to 2 of 2

Thread: The best way to make a valid web form in XHTML?

  1. #1
    Join Date
    Aug 2007
    Posts
    1

    The best way to make a valid web form in XHTML?

    The best way to make a valid web form in XHTML?

    How do you think i should do it?

    I would normally use ASP but my host wont let me upload them so im going to use a different technique.

    <input name="lname" type="text" id="lname" /></p>

    The input tag above isnt valid in XHTML strict.

    Please help, Ant...

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    I agree that XHTML requires id instead of name but there are a few instances where id doesn't work, so name has to be used.

    However, I've just checked a page of mine that has a form using name=".." and it does validate with Doctype XHTML 1.0 Strict.

    http://www.wickham43.net/forms.php

    I wouldn't worry about it so long as it works. If your page doesn't validate, it probably will if you use a transitional Doctype.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

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