niezle zabilo mi to cwieka dlatego pisze.... ponizej przedstawiam przyklad, strona jest w/g W3C poprawna, ale gdy deklaruje start sesji to wywala WARNING:
Cytat
Line 13, Column 118: NET-enabling start-tag requires SHORTTAG YES.
e="5d5d533cffbd94ecce35f4add60ea900" />
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HMTL 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HMTL 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
e="5d5d533cffbd94ecce35f4add60ea900" />
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HMTL 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HMTL 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
gdy usuwam deklaracje sesji wszystko jest wporzadku, dlaczego wystepuje ten problem?
ponizej kod przykladu prosciej nie mozna:
<?php ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE></TITLE> <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-2"> <META HTTP-EQUIV="Content-Language" CONTENT="pl"> </HEAD> <BODY BGCOLOR="#FFFFFF"> <table cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"> <form method="POST" action="test.php"> <input type="text" name="cityorzip" size="20" value=""><br> </form> </td> </tr> </table> </body> </html>
bede wdzieczny za pomoc
pozdrawiam