Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne]Walidator W3C
adrianozo
post 11.01.2010, 20:16:26
Post #1





Grupa: Zarejestrowani
Postów: 733
Pomógł: 4
Dołączył: 11.11.2009

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


Kod
Line 40, Column 47: required attribute "action" not specified

<input type="submit" value="Zaloguj" /><form /></div>            </div>

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.


Wiem, że czepia się o atrybut action ale nie bardzo wiem dlaczego:
formularz:
Kod
<div align="center"><form action="/cpadmin" method="post" />
<input type="hidden" name="send" value="1" />
Login:<br /><input type="text" name="login" /><br />
Hasło:<br /><input type="password" name="haslo" /><br />
<input type="submit" value="Zaloguj" /><form /></div>


--------------------
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
darko
post 11.01.2010, 20:18:02
Post #2





Grupa: Zarejestrowani
Postów: 2 885
Pomógł: 463
Dołączył: 3.10.2009
Skąd: Wrocław

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


<form action="/cpadmin" method="post" />
Jednocześnie otwierasz i zamykasz form, wywal znacznik krótkiego zamknięcia.
// edit
@down: TAK


// edit2
odkrył jakieś nowe błędy wcześniej niewidoczne wskutek tego błędu smile.gif Co to za błędy?


Ten post edytował darko 11.01.2010, 20:27:48


--------------------
Nie pomagam na pw, tylko forum.
Go to the top of the page
+Quote Post
adrianozo
post 11.01.2010, 20:26:23
Post #3





Grupa: Zarejestrowani
Postów: 733
Pomógł: 4
Dołączył: 11.11.2009

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


Czyli, że ma to wyglądać tak?
<form action="/cpadmin" method="post">

Jeśli tak to wywala wtedy 7 błędów. Strona w xhtml
a ten /cpadmin to krótki url


--------------------
Go to the top of the page
+Quote Post
kosmowariat
post 11.01.2010, 20:47:21
Post #4





Grupa: Zarejestrowani
Postów: 235
Pomógł: 17
Dołączył: 18.07.2007
Skąd: Białystok

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


mniej więcej tak ma wyglądać, i zamykający znacznik zamiast <form /> => </form>

i pokaż resztę tych błędów
Go to the top of the page
+Quote Post
adrianozo
post 11.01.2010, 20:49:02
Post #5





Grupa: Zarejestrowani
Postów: 733
Pomógł: 4
Dołączył: 11.11.2009

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


Closed

  1. <form action="/cpadmin" method="post">
  2. <input type="hidden" name="send" value="1" />
  3. Login:<br /><input type="text" name="login" /><br />
  4. Hasło:<br /><input type="password" name="haslo" /><br />
  5. <input type="submit" value="Zaloguj" /></form>


Dobry kod


--------------------
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 Wersja Lo-Fi Aktualny czas: 19.07.2025 - 19:47