Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html]validator -> problem z dopisywanym polem
Mary$
post
Post #1





Grupa: Zarejestrowani
Postów: 113
Pomógł: 1
Dołączył: 19.02.2007
Skąd: 3city

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


Przemaglowałem moja strone przez validatora i jeden z błędów jakie wyskoczyły to:
Line 58 column 120: 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 .

...="1ca42d3db1d7ff533b470d070b5933b3" /><div style="text-align:right">

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>").



a w htmlu fragment tego dokumentu wygląda tak:
  1. <form method="post" action="index.php"><input type="hidden" name="PHPSESSID" value="5146343e75f4f93dc0ba69bf7a38238b" /><div style="text-align:right">

z tym, że pole
  1. <input type="hidden" name="PHPSESSID" value="5146343e75f4f93dc0ba69bf7a38238b" />

dopisuje sie samo. próbowałem już stworzyć w forularzu swoje pole PHPSESSID, bo myslałem, że wtedy przeglądarka nie doda, ale niestety...

Czy ktoś wie, jak temu zaradzić?

Ten post edytował Mary$ 5.03.2007, 13:25:17
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Mary$
post
Post #2





Grupa: Zarejestrowani
Postów: 113
Pomógł: 1
Dołączył: 19.02.2007
Skąd: 3city

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


tak wygląda teraz kod w edytorze:
  1. <form method="post" action="index.php"><fieldset style="border: 0px; text-align:right;">
  2. <label><input type="text" name="keyword" size="20" class="EditBox" value="Szukaj..." style="font-size:8pt;font-family:Tahoma;" onfocus="if(this.value=='Szukaj...')this.value=''" onblur="if(this.value=='')this.value='Szukaj...'"></label>
  3. <input type="hidden" name="content" value="search" />
  4. <input type="hidden" name="show" value="search" />
  5. </form>


a tak w przeglądarce, a w zasadzie w źródle, które podał validator:
  1. <form method="post" action="index.php"><input type="hidden" name="PHPSESSID" value="8cc10c81f7b9ecfef7c45fe5aa5482ce" /><fieldset style="border: 0px; text-align:right;">
  2. <label><input type="text" name="keyword" size="20" class="EditBox" value="Szukaj..." style="font-size:8pt;font-family:Tahoma;" onfocus="if(this.value=='Szukaj...')this.value=''" onblur="if(this.value=='')this.value='Szukaj...'"></label>
  3. <input type="hidden" name="content" value="search" />
  4. <input type="hidden" name="show" value="search" />
  5. </form>


nic nie pomogło dodanie <fieldset> (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

Ten post edytował Mary$ 5.03.2007, 21:48:52
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: 15.10.2025 - 03:06