Re[2]: [PHP] XHTML Validator Problem[Scanned]
| From: | Tom Rogers | Date: | Tue, 07 Jan 2003 12:43:51 +0000 |
| Subject: | Re[2]: [PHP] XHTML Validator Problem[Scanned] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130566@lists.php.net to get a copy of this message | ||
Hi,
Tuesday, January 7, 2003, 10:23:54 PM, you wrote:
ME> Tom,
ME> Thanks for that.
ME> I don't have access to the server on which the site is being run but I'll suggest
ME> the change to the hosting company.
ME> Michael Egan
ME> -----Original Message-----
ME> From: Tom Rogers [mailto:trogers@kwikin.com]
ME> Sent: 07 January 2003 10:57
ME> To: Michael Egan
ME> Cc: PHP General (E-mail)
ME> Subject: Re: [PHP] XHTML Validator Problem[Scanned]
ME> Hi,
ME> Tuesday, January 7, 2003, 6:58:08 PM, you wrote:
ME>> I've finally got round to making some attempt to validating the pages of a site
ME>> I've done with PHP using the W3C XHTML Validator. However, it's throwing out errors
ME>> wherever I use session control
ME>> on pages.
ME>> The server generates PHP Session ID variables which are added to links to other pages but
ME>> my understanding is that these are rejected on the basis that the '&' and
ME>> '=' characters are invalid (I
ME>> might be wrong here).
ME>> Examples of the error messages generated by the validator are given below:
ME>> Line 154, column 102: cannot generate system identifier for general entity
ME>> "PHPSESSID"
ME>> ...u'
ME>> href='competitions.php?option=add&PHPSESSID=888a059dbc17855c09885c3ea978df
ME>> ^
ME>> Line 154, column 102: general entity "PHPSESSID" not defined and no default
ME>> entity (explain...
ME>> <http://validator.w3.org/docs/errors.html>).
ME>> ...u'
ME>> href='competitions.php?option=add&PHPSESSID=888a059dbc17855c09885c3ea978df
ME>> ^
ME>> These are the only error messages left - having dealt with the dozens of others left in
ME>> through my own sloppy coding :-(
ME>> I'm not sure how to tackle this given that these elements of the page are generated
ME>> automatically.
ME>> Is there a way round this or are there any sources of information relating to this area?
ME>> Thanks in advance,
ME>> Michael Egan
ME>> --
ME>> PHP General Mailing List (http://www.php.net/)
ME>> To unsubscribe, visit: http://www.php.net/unsub.php
ME> In your php.ini set arg_separator.output to &
ME> That should fix it.
You can put this at the top of your scripts:
ini_set('arg_separator.output','&');
--
regards,
Tom