Re: PHP generates tags automatically and does it incorrectly.




<showandbeshown@xxxxxxxxx> wrote in message
news:cd0315ce-ba4c-4500-bbf8-e822071ccd6f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

My php code generates the following line:
<input type="hidden" name="PHPSESSID"
value="36e197f92bsd34df4a6a20dkajkf10b4e4" />

Because of this line I cannot validate my page as HTML 4.01 strict
(since the input tag is ended with "/>").

Is it possible that you are using ampersand in your form.
Example:
if you are using this:
<form action="index.php?id=1&cat=2" method="POST">

use this:
<form action="index.php?id=1&amp;cat=2" method="POST">

If this doesn't help here is some other stuff to read:

http://www.w3.org/QA/2005/04/php-session

Best of luck,
Zvonko


.



Relevant Pages

  • Re: Empty link
    ... >DIV element. ... I wound up recoding my pages to validate agains HTML 4.01 Strict ...
    (comp.infosystems.www.authoring.html)
  • Re: pet project done!
    ... will validate as html 4.01 transitional and as css. ... You can also validate as html 4.01 strict at w3c using direct code ... strict does not allow iframes or regular frames either. ...
    (alt.html)
  • Re: Really stupid newb question-

    ... The tables do what I want, they validate in Transitional & Strict and I ... Please read my home page in regards to my HTML skills- I am still ... amateur automotive skills on a personal web page. ...
    (alt.html)
  • Re: load frameset file form php include?
    ... 4.01, not transitional or strict. ... either the frameset or transitional version of html 4.01, ... not validate at the W3C validator. ... However I would correct the Doctype ...
    (comp.lang.php)
  • Re: relative path / absolute path
    ... Doesn't validate in HTML 4.01 (strict or transitional). ... <?php echo 'Just another PHP saint'; ...
    (comp.lang.php)