Robis Posted September 27, 2005 Report Share Posted September 27, 2005 Labdien! Kā ir ar formām iekš STRICT XHTML ? Tipa, strictajam vajag lai nav atribūts name, bet tā vietā id, vai ne tā? Bet vai php atpazīst tādus mainīgos, kam ir atribūts id, nevis name? Respektīvi, ja: <input type="text" id="vards" /> <?php $vards = $_POST['vards']; ?> Sapratāt domu. Link to comment Share on other sites More sharing options...
Delfins Posted September 27, 2005 Report Share Posted September 27, 2005 wtf.. nekā nesaprotu... Inputam nav jēgas, ja nav name... pat ja nevajag name, var takš vienkārši name piešķirt to pašu id. Link to comment Share on other sites More sharing options...
bubu Posted September 27, 2005 Report Share Posted September 27, 2005 Man šāds fails smuki validējās! Nezinu ko tu tur putrojies. <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><title>title</title></head><body> <form action=""> <p><input type="text" name="NOSAUKUMS"/></p> </form> </body></html> Link to comment Share on other sites More sharing options...
Delfins Posted September 27, 2005 Report Share Posted September 27, 2005 Tipa, strictajam vajag lai nav atribūts name, lūdzu, parādi norādi, kur tas ir rakstīts.. Link to comment Share on other sites More sharing options...
v3rb0 Posted September 27, 2005 Report Share Posted September 27, 2005 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd sākot no 722 rindas.. <!-- the name attribute is required for all but submit & reset --> <!ELEMENT input EMPTY> <!-- form control --> <!ATTLIST input %attrs; %focus; type %InputType; "text" name CDATA #IMPLIED ... > Link to comment Share on other sites More sharing options...
bubu Posted September 27, 2005 Report Share Posted September 27, 2005 (edited) Edit: v3rb0 jau pasteidzās.. neatkārtošos :) Edited September 27, 2005 by bubu Link to comment Share on other sites More sharing options...
Recommended Posts