Ampersands in urls

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

My website uses sessions and therefore sends PHPSessionID's throug the url
whenever a browser does not accept cookies. This works well except tha when
i try to validate the webpage with W3C it complains about my url's having &
which I should change in &. How can I tel my webserver to do that?

Re: Ampersands in urls

Wiert Dijkkamp wrote:

Quoted text here. Click to load it

David Dorward       < <
                     Home is where the ~/.bashrc is

Re: Ampersands in urls

David Dorward wrote:

Quoted text here. Click to load it
thanks a lot. I put "ini_set('arg_separator.output','&amp;');" in my
fix_code function like this an now it works.

$charset = "iso-8859-1";
$mime = "text/html";

function fix_code($buffer) {
   $in = array(" />"," px;");
   $out= array(">","px;");
   return (str_replace($in, $out, $buffer));
$prolog_type = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01
Transitional//EN' ' '>

<html lang='nl'>";

 header("Content-Type: $mime;charset=$charset");
print $prolog_type;

Site Timeline