FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

[resolved] Valid form

 


riv
I have a "Go" form on my website (which has been temporarily removed) that doesn't validate as XHTML 1.0 Strict. Hence I have temporarily removed it; having code that will validate is important to me. The form code is as follows:
Code:

<form action="index.php" method="get">
<input type="text" name="go" />
<input type="submit" value="Go" />
</form>

And I've tested it in an empty document as well, so the error is in the code. Can you tell me what is wrong with the code? I have looked over it dozens of times but I can't find the problem.


Last edited by riv on Sun Mar 05, 2006 10:21 pm; edited 1 time in total
Stubru Freak
You should group inputs into fieldsets

Change your code into this:

<form action="index.php" method="get">
<fieldset style="border: none; or leave it blank but that will give a border, or place the style information somewhere else">
<input type="text" name="go" />
<input type="submit" value="Go" />
</fieldset>
</form>
riv
Thanks! My website validates perfectly again! Very Happy
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.