In the effort to make my blog project core-code totally 100% Valid XHTML (Trans.) I have begun to use urlencode() for links generated with variables for ex:
Code: Select all
$entries.= "<font size='1'><i>Catagory: <a href='#'>$cat_name</a> | Published: $date | ID: $id | # of Comments: <a href='" . $_SERVER['PHP_SELF'] . "?op=view_comment&id=$id" . "'>$num</a></i></font>\n";cannot generate system identifier for general entity "id".
...'/PostBlog/index.php?op=view_comment&id=1'>2</a></i></font>
But when I add the urlencode( before the $_SERVER and the ) after the $id", I get a 404 not found error even though the path shown on the 404 error matches what it would be without the urlencode
Thanks!