W3C home > Mailing lists > Public > www-validator@w3.org > January 2008

Re: Validator get's different html from what I see

From: Robin Daugherty <robin@robindaugherty.net>
Date: Mon, 31 Dec 2007 21:14:47 -0700
Cc: www-validator@w3.org
Message-Id: <37289DCD-5CC9-48C8-9440-988542328070@robindaugherty.net>
To: Ernest Schloesser <ernest@lochmuehle.net>

The reason that you are seeing different output from PHP is that the  
validator does not support cookies.  Because it does not support  
cookies, PHP automatically alters all links to include the session  
ID.  When you use Firefox with cookies enabled, PHP does not alter the  
links.  Try disabling cookies in Firefox to get the same result.

For more information, see http://php.net/manual/en/ref.session.php

Robin Daugherty


On Dec 29, 2007, at 5:05 PM, Ernest Schloesser wrote:

>
> Hello,
>
> here is my problem. The website was valid for a long time. Suddenly,  
> all links show errors.
> As all programmers do, I also claim: I changed nothing!
> What I found is that the source code as displayed by the validator  
> is different from the source-code that I see in firefox.
>
> Here is a snippet of what the validator sees:
> # <body>
> # <div class="topmenu"><table><tr>
> # <td style="width:9.6em;"><a href="index.php? 
> PHPSESSID=0af81ccd17c3e6deba81ef66ebac5c2b">Home</a> &nbsp;</td>
> # <td style="width:9.6em;"><a href="ueberuns.php? 
> PHPSESSID=0af81ccd17c3e6deba81ef66ebac5c2b">Über uns</a> &nbsp;</td>
>
> Here is what I see in firefox:
> <body>
> <div class="topmenu"><table><tr>
> <td style="width:9.6em;"><a href="index.php">Home</a> &nbsp;</td>
> <td style="width:9.6em;"><a href="ueberuns.php">Über uns</a> &nbsp;</ 
> td>
>
> My PHP code that produces this snippet:
> function MB_Layout()
> {
>  echo "\n<body>\n";
>  echo '<div class="topmenu">';
>  echo '<table>';
>  echo '<tr>';
>  echo "\n";
>  echo '<td style="width:9.6em;"><a href="index.php">Home</a> &nbsp;</ 
> td>';
>  echo "\n";
>  echo '<td style="width:9.6em;"><a href="ueberuns.php">Über uns</a>  
> &nbsp;</td>';
>  echo "\n";
>
> The url of the website that I have the problem with:
> www.dasmassband.de
>
> where do these sessionIDs come from?
>
> Please help!!
>
>
> Greetings.
>
> Ernest Schlösser
>
>
Received on Tuesday, 1 January 2008 04:15:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:28 GMT