ugrás a tartalomhoz

Validátor szerint rossz helyen van az űrlapom?

Anonymous · 2006. Aug. 31. (Cs), 17.49
Van a kovetkezo kodom:

<tr id="check_4">
<td><img src="/images/folder.gif" alt="folder" />ok</td>
 <td><select name="select">
 <option value="1">Remove Folder</option>
 <form action="folders.php" method="post">
 <input type="hidden" name="rowid" value="4" />
 <input type="submit" name="submit" value="go" />
 </form>
 </select>
</td></tr>
A W3C Validator ezt mondja nekem :

<form action="folders.php" method="post">

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


Ebbol azt szedem ki, hogy a sorom nincs jo helyen, de akkor hova kene rakni ? En probaltam mar mindenfelet de nem mukodik :(

tudna valaki segiteni ?
Koszonom !
 
1

Mondjuk így?

Wabbitseason · 2006. Aug. 31. (Cs), 17.57
Célszerű a form teljes tartalmát a <form> tagen belül elhelyezni. A <select>-en belül csak <option> vagy <optiongroup> tageket illik ültetni.
<tr id="check_4">
<td><img src="/images/folder.gif" alt="folder" />ok</td>
 <td><form action="folders.php" method="post">
  <select name="select">
   <option value="1">Remove Folder</option>
  </select>
  <input type="hidden" name="rowid" value="4" />
  <input type="submit" name="submit" value="go" />
 </form>
</td></tr>