Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> 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
bełdzio
post
Post #2





Grupa: Zarejestrowani
Postów: 690
Pomógł: 81
Dołączył: 6.04.2005
Skąd: Szczecin

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


a konkretniej to która to linia na tym listingu co wkleiłeś ? bo dałeś kawałek kodu i i tak nikt nie wie o co chodzi (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
Go to the top of the page
+Quote Post
prosiak
post
Post #3





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

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


48 linia tj mniej wiecej gdzies tutaj
  1. <a href="logowanie/edycja_profil.php?mode=zobacz_profil">Profil</a><br>
  2.  
  3. <a href="/~diversity_2006/index.php?mode=wyloguj">wyloguj</a><br>
  4. <a href="/~diversity_2006/index.php?mode=zapamietaj">Zapamietaj mnie</a></span>
Go to the top of the page
+Quote Post
vieri_pl
post
Post #4





Grupa: Zarejestrowani
Postów: 406
Pomógł: 9
Dołączył: 24.07.2005
Skąd: Bydgoszcz

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


jesli pisanie tak <br> to xhtml to ja jestem ******* <br /> powinno być (IMG:http://forum.php.pl/style_emoticons/default/dry.gif)

Kolego to nie jest xhtml...
Go to the top of the page
+Quote Post
prosiak
post
Post #5





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

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


to bylo niedopatrzenie (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) poprawilem jednak sytuacji to nie zmienia

  1. </div>
  2. </td>
  3. <td style="text-align:right">
  4. <div>
  5. <span class="zw2">Witaj <b>xxx</b> na stronie !<br />
  6. <a href="logowanie/edycja_profil.php?mode=zobacz_profil">Profil</a><br />
  7.  
  8. <a href="/~diversity_2006/index.php?mode=wyloguj">wyloguj</a><br />
  9. <a href="/~diversity_2006/index.php?mode=zapamietaj">Zapamietaj mnie</a></span>
  10. </div>
Go to the top of the page
+Quote Post
dr_bonzo
post
Post #6





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


"Error Line 49 column 144: document type does not allow element "input" here;"

Validator pluje sie o element <input> a takiego nie widze w kodzie? Cosik nie ten fragment kodu podales. <Input> powinien bycv wewnatrz <fieldset>.
Go to the top of the page
+Quote Post
prosiak
post
Post #7





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
dr_bonzo
post
Post #8





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


  1. <input type="hidden" name="PHPSESSID" value="06a7ac162b76523aef66b163bd513d1c" />

to jest przekazywanie identyfikatora sesji przez php (use_only_cookies masz wylaczone w php.ini), php sam dodaje to pole input w kazdym formularzu.

Jak juz mowilem -- umiesc inputy w fieldsecie.
Go to the top of the page
+Quote Post
prosiak
post
Post #9





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

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


ale na innym serverze dziala poprawnie, wiec jest to cos w konfiguracji servera ... uzywam najnoweszej wersji krasnalserv

pozatym jak umiescic tego inputa w fieldset jak on jest generowany dynamicznie ?
Go to the top of the page
+Quote Post
dr_bonzo
post
Post #10





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


Zgadza sie -- jest to zwiazane z konfigiem php.

Cytat
pozatym jak umiescic tego inputa w fieldset jak on jest generowany dynamicznie ?

A niby czemu umieszcza sie sam w <form>ie, a nie gdzies indziej? Dodaj <fieldset> i sprawdz czy ten input doda sie wewnatrz fieldseta.
Go to the top of the page
+Quote Post
prosiak
post
Post #11





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

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


to samo
Go to the top of the page
+Quote Post

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: 22.08.2025 - 13:30