Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> bledy walidatora, formularz
dabb
post
Post #1





Grupa: Zarejestrowani
Postów: 54
Pomógł: 0
Dołączył: 13.11.2003
Skąd: Poznań

Ostrzeżenie: (30%)
XX---


jak naprawic te bledy bo juz nie wiem co mam robic...

  1. #
  2.  
  3. Line 97, column 11: there is no attribute "name"
  4.  
  5. <form name="txtlist" action="./dodaj.php" target="txtlist" method="get" onSubmit
  6.  
  7. &#9993;
  8. #
  9.  
  10. Line 97, column 49: there is no attribute "target"
  11.  
  12. ...txtlist" action="./dodaj.php" target="txtlist" method="get" onSubmit="JavaScr
  13.  
  14. &#9993;
  15. #
  16.  
  17. Line 97, column 81: there is no attribute "onSubmit"
  18.  
  19. ...rget="txtlist" method="get" onSubmit="JavaScript:window.open('','txtlist','wi
  20. #
  21. Line 97, column 176: document type does not allow element "form" here; missing one of "object", "ins", "del", "map" start-tag
  22. ...,toolbar=no,status=no,resizable=no')">
  23.  
  24. 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.
  25.  
  26. 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>").


--------------------
Remember to brush your teeth !
biedziak.com biuro rachunkowe w rozsądnej cenie.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 10)
crash
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 196
Pomógł: 2
Dołączył: 17.01.2004
Skąd: Sosnowiec

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


Napisałbyś chociaż jakiego doctype używasz...


--------------------
Go to the top of the page
+Quote Post
dr_bonzo
post
Post #3





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

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


1. Daj link do strony -- bedziemy mogli poznac kontekst problemu (otaczajace go znaczniki itd.)

2. onSubmit powinno byc z malych liter: onsubmit


--------------------
Nie lubię jednorożców.
Go to the top of the page
+Quote Post
dabb
post
Post #4





Grupa: Zarejestrowani
Postów: 54
Pomógł: 0
Dołączył: 13.11.2003
Skąd: Poznań

Ostrzeżenie: (30%)
XX---


mam taki kod formularza:
Kod
<form action="./dodaj.php" target="txt" method="get" id="txtlist" onsubmit="JavaScript:window.open('','txtlist','width=300,height=150,toolbar=no,status=no,resizable=no')">
<p class="txtVerdana8white">Podaj email aby otrzymywać biuletyn.</p>
<div><input type="text" name="email" value="Twój email" size="14" maxlength="100" /></div>
<div><input type="hidden" name="type" id="type_sub" value="sub" checked="checked" /></div>
<table border="0" cellpadding="0" cellspacing="0" width="50"><tr><td style="height: 4px"></td></tr></table>
<div><input type="submit" value="dodaj" /></div>
</form>


i bład walidatora ze nie ma atrybuty target ale co wstawic zamiast target jakas podpowiedz ? moze jakis nowy atrybut questionmark.gif

pozdrawiam
dabb

Ten post edytował dabb 18.06.2005, 13:39:52


--------------------
Remember to brush your teeth !
biedziak.com biuro rachunkowe w rozsądnej cenie.
Go to the top of the page
+Quote Post
crash
post
Post #5





Grupa: Przyjaciele php.pl
Postów: 2 196
Pomógł: 2
Dołączył: 17.01.2004
Skąd: Sosnowiec

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


Ponawiam prośbę o podanie doctype tego dokumentu tongue.gif


--------------------
Go to the top of the page
+Quote Post
dabb
post
Post #6





Grupa: Zarejestrowani
Postów: 54
Pomógł: 0
Dołączył: 13.11.2003
Skąd: Poznań

Ostrzeżenie: (30%)
XX---


  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


--------------------
Remember to brush your teeth !
biedziak.com biuro rachunkowe w rozsądnej cenie.
Go to the top of the page
+Quote Post
dr_bonzo
post
Post #7





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

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


target --> poszukaj byly podane rozwiazania: za pomoca javascriptu lub poszerzenia DTD.


--------------------
Nie lubię jednorożców.
Go to the top of the page
+Quote Post
Draugfor
post
Post #8





Grupa: Zarejestrowani
Postów: 131
Pomógł: 0
Dołączył: 13.07.2003
Skąd: Torun/Poznan

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


1. W XHTML nie ma czegos takiego, jak target, wiec, jak napisal dr_bonzo, musisz uzyc JS, chociaz jest to niezgodne z regulami Accessibility.
2. onSubmit -> onsubmit.
3. <form> nie moze byc wewnatrz <p>.

EDIT
a propos 1., luknij tu http://wordpress.org/support/topic/1472

Ten post edytował Draugfor 18.06.2005, 14:09:25


--------------------
On the day I was born, the nurses all gathered 'round
And they gazed in wide wonder, at the joy they had found
Go to the top of the page
+Quote Post
dabb
post
Post #9





Grupa: Zarejestrowani
Postów: 54
Pomógł: 0
Dołączył: 13.11.2003
Skąd: Poznań

Ostrzeżenie: (30%)
XX---


zmienilem doctype na xhtml 1.1 strcit bo nie wiem czemu w3c wywalilo target z xhtml1.1 smile.gif moze przez te ramki.....


pozdrawiam


--------------------
Remember to brush your teeth !
biedziak.com biuro rachunkowe w rozsądnej cenie.
Go to the top of the page
+Quote Post
Draugfor
post
Post #10





Grupa: Zarejestrowani
Postów: 131
Pomógł: 0
Dołączył: 13.07.2003
Skąd: Torun/Poznan

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


Rowniez po to, zeby nie robic otwierania stron w nowym oknie, co wielu uzytkownikow doprowadza do szalu.


--------------------
On the day I was born, the nurses all gathered 'round
And they gazed in wide wonder, at the joy they had found
Go to the top of the page
+Quote Post
matid
post
Post #11





Grupa: Zarejestrowani
Postów: 362
Pomógł: 0
Dołączył: 18.02.2004
Skąd: Knurów

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


Cytat(dabb @ 2005-06-18 15:24:47)
zmienilem doctype na xhtml 1.1 strcit bo nie wiem czemu w3c wywalilo target z xhtml1.1

Nie istnieje XHTML 1.1 Strict
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 21.08.2025 - 23:10