Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> W3C XHTML 1.0 - problem
prosiak
post
Post #1





Grupa: Zablokowani
Postów: 15
Pomógł: 0
Dołączył: 11.02.2006

Ostrzeżenie: (0%)
-----


Kod
Error  Line 49 column 144: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

...="6b5f416262e5211048ce7fb5b6ca389a" />

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


i kod HTML:
  1. </tr>
  2. <tr>
  3. <td style="text-align:left">
  4. <div style="width:260px; margin-left:0px;">
  5.  
  6. <select size="1" name="lista" onchange="location.href='?th='+this.options[this.selectedIndex].value+''" >
  7. <option value="a" selected="selected">Wybierz them'a</option>
  8.  
  9. <option value="1">Theme 1</option>
  10. <option value="2">Theme 2</option>
  11. <option value="3">Theme 3</option>
  12. <option value="4">Theme 4</option>
  13. <option value="a">Theme 20</option>
  14. <option value="0">Standart</option>
  15.  
  16. </select> </div>
  17. </td>
  18. <td style="text-align:right">
  19. <div>
  20. <span class="zw2">Witaj <b>xxx</b> na stronie !<br>
  21. <a href="logowanie/edycja_profil.php?mode=zobacz_profil">Profil</a><br>
  22.  
  23. <a href="/~diversity_2006/index.php?mode=wyloguj">wyloguj</a><br>
  24. <a href="/~diversity_2006/index.php?mode=zapamietaj">Zapamietaj mnie</a></span>
  25. </div>
  26. </td>
  27. </tr>
  28. <tr>
  29. <td colspan="3">
  30. <div>
  31.  
  32. <hr/>
  33. </div>
  34. </td>
  35. </tr>
  36. </table>


niemoge sie za skarby doszukac bledu (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) ((

EDIT

http://mozillapl.org/forum/about-6648-0.html

znalazlem na google (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif)
rzuczcie na to okiem i myslcie jak to rozwiazac (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

Ten post edytował prosiak 22.02.2006, 19:49:23
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
prosiak
post
Post #2





Grupa: Zablokowani
Postów: 15
Pomógł: 0
Dołączył: 11.02.2006

Ostrzeżenie: (0%)
-----


faktycznie t oraczej nie ten kod ...
ale zauwazylem cos dziwnego:

kod ze skryptu php
  1. <?php
  2.  
  3.  <div>
  4. <form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\" >
  5. <div>
  6. <div id=\"warning\" style=\"display: none;\"><span class=\"zw2B\">Masz włączony klawisz Caps lock !</span></div>
  7.  <span class=\"zw3\">Login:</span>
  8. <input type=\"text\" size=\"12\" name=\"login\" />
  9.  <span class=\"zw3\">Hasło:</span>
  10. <input type=\"password\" size=\"12\" name=\"pass\" onkeypress=\"capsDetect(arguments[0]);\" />
  11.  <span class=\"zw3\">Zapamiętaj mnie:</span><input name=\"auto\" type=\"checkbox\" value=\"on\" />
  12. <input type=\"hidden\" name=\"mode\" value=\"spr\" />
  13. <input class=\"kolorowy\" type=\"submit\" name=\"submit\" value=\"Zaloguj\" />
  14. </div>
  15. </form>
  16.  </div>
  17. ";
  18.  
  19. ?>


i kod z przegladarki

Kod
         <div>
      <form method="post" action="/~sssac/index.php" >

      <div>
        <div id="warning" style="display: none;"><span class="zw2B">Masz włšczony klawisz Caps lock !</span></div>
         <span class="zw3">Login:</span>
        <input type="text" size="12" name="login" />
         <span class="zw3">Hasło:</span>
        <input type="password" size="12" name="pass" onkeypress="capsDetect(arguments[0]);" />
         <span class="zw3">Zapamiętaj mnie:</span><input name="auto" type="checkbox" value="on" />

        <input type="hidden" name="mode" value="spr" />
        <input class="kolorowy" type="submit" name="submit" value="Zaloguj" />
      </div>
      </form>
         </div>


gdy jednakze kod z przegladarki zapisze do pliku i go zwalidiuje to jest OK (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif) !! (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ?
a jak wychodzi kod ze skryptu to errora wyswietla.

Po usunieciu tego formularza jest ok, wiec na 1000% to jest ten kod[/quote]

po usunieciu wszystkiego z pomiedzy <form> a <form> dalej wywala ten error (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif) wyglada na to jak by skrypt z tego formularza cos wysylal ...

raz mi jakos w kodzie w przegladarce wyszlo cos takiego
Kod
<input type="hidden" name="PHPSESSID" value="06a7ac162b76523aef66b163bd513d1c" />  


(IMG:http://forum.php.pl/style_emoticons/default/blink.gif)

i to chyba to jest to cos ...
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 10.10.2025 - 18:37