Results 1 to 5 of 5

Thread: Little validation help needed

  1. #1
    Elite Member Michael's Avatar
    Join Date
    Jan 2009
    Posts
    1,081

    Default Little validation help needed 24 Jan 2010 @ 16.28

    I am trying to validate this piece of code but it wont:

    Code:
    <form method="get" id="searchform" action="http://www.youtubedesigns.com" style="padding:0; margin:0;">
    
    <input type="text" class="searching" value="" name="s" id="s" /><input class="submit" type="image" src="http://www.youtubedesigns.com/wp-content/themes/theme835/images/search.gif" value="submit" />
    
    </form>
    The doctype is xhtml1 strict and I am useless with forms as I have barely used them.

    Hope something can point out how to validate that as its driving the sgml parser for FF crazy with IFRAME undefined etc

    Thanks guys!

    EDIT: The code above isnt causing the IFRAME error, just realised but still the code above I think isnt valid.
      Reply With Quote

  2. #2
    Elite Member Michael's Avatar
    Join Date
    Jan 2009
    Posts
    1,081

    Default 24 Jan 2010 @ 16.36

    Okay I have it down to the last two errors but its the above code causing it.
      Reply With Quote

  3. #3
    Senior Member CloudedVision's Avatar
    Join Date
    Jan 2009
    Posts
    824
    Blog Entries
    4

    Default 24 Jan 2010 @ 17.42

    What are the errors the validator is giving you?
      Reply With Quote

  4. #4
    Trusted Guru Frinkky's Avatar
    Join Date
    Dec 2008
    Posts
    1,678
    Blog Entries
    1

    Default 24 Jan 2010 @ 19.13

    Just wrap the inputs in p, div or h tags:

    Code:
    <form method="get" id="searchform" action="http://www.youtubedesigns.com" style="padding:0; margin:0;">
    
    <p><input type="text" class="searching" value="" name="s" id="s" /></p>
    <p><input class="submit" type="image" src="http://www.youtubedesigns.com/wp-content/themes/theme835/images/search.gif" value="submit" /></p>
    
    </form>
    If you don't want the block styling, add a class and define in your css to display:inline.
      Reply With Quote

  5. #5
    Elite Member Michael's Avatar
    Join Date
    Jan 2009
    Posts
    1,081

    Default 24 Jan 2010 @ 23.22

    Awesome thank you! I will add that now.

    EDIT: Worked perfect with the the added classes Thanks Jon!
    Last edited by Michael; 24 Jan 2010 at @ 23.29.
      Reply With Quote

Similar Threads

  1. Fancybox Validation
    By craigfarrall in forum Javascript Libraries
    Replies: 2
    Last Post: 11 May 2011, @ 13.41
  2. javascript validation
    By sudhakararaog in forum Javascript Libraries
    Replies: 0
    Last Post: 22 Feb 2010, @ 10.52
  3. Adsense and validation
    By Michael in forum HTML & CSS
    Replies: 0
    Last Post: 15 Feb 2010, @ 23.20
  4. php form with validation help
    By bonnit in forum PHP, ASP & Java
    Replies: 7
    Last Post: 10 Feb 2009, @ 18.49

Tags for this Thread

Posting Permissions

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