Little validation help needed

This is a discussion on Little validation help needed within the General Development Issues forums, part of the Development category; 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; ...


Reply
 
LinkBack Thread Tools Display Modes
Old 24th January 2010, 03:28 PM   #1
Senior Member
 
Join Date: Jan 2009
Posts: 974
Thanks: 56
Thanked 11 Times in 11 Posts
Michael is on a distinguished road
Default Little validation help needed

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.
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 24th January 2010, 03:36 PM   #2
Senior Member
 
Join Date: Jan 2009
Posts: 974
Thanks: 56
Thanked 11 Times in 11 Posts
Michael is on a distinguished road
Default

Okay I have it down to the last two errors but its the above code causing it.
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 24th January 2010, 04:42 PM   #3
supermod
 
CloudedVision's Avatar
 
Join Date: Jan 2009
Location: Your Imagination
Posts: 729
Blog Entries: 4
Thanks: 1
Thanked 27 Times in 26 Posts
CloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura about
Expertise: PHP
Experience: Professional
Default

What are the errors the validator is giving you?
CloudedVision is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 24th January 2010, 06:13 PM   #4
admin
 
Frinkky's Avatar
 
Join Date: Dec 2008
Posts: 700
Thanks: 0
Thanked 37 Times in 37 Posts
Frinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond repute
Expertise: Design & Graphics
Experience: Professional
Default

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.
__________________
Jon Warner
Web Pro Cafe :: The PixelForge :: Follow my Twits (or something) :: LinkedIn
Frinkky is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
The Following User Says Thank You to Frinkky For This Useful Post:
Michael (24th January 2010)
Old 24th January 2010, 10:22 PM   #5
Senior Member
 
Join Date: Jan 2009
Posts: 974
Thanks: 56
Thanked 11 Times in 11 Posts
Michael is on a distinguished road
Default

Awesome thank you! I will add that now.

EDIT: Worked perfect with the the added classes :) Thanks Jon!

Last edited by Michael; 24th January 2010 at 10:29 PM..
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Reply

Tags
needed, validation

Thread Tools
Display Modes