it is possible for you to give me one URL exmaple (from the one i given above) of how to include it in the page? i am an seo not php coder :-)
Main Topics
Browse All Topics
For those who know PHP and SEO
I running my page in W3C markup validation most of the "errors" I get as a result are the link URL's. So for example:
ERROR: reference to entity "comp" for which no system identifier could be generated
ERROR: reference to entity "page" for which no system identifier could be generated
These are all pointing to the link URL's where the "=" "&" signs are...
Such as " index.php?lang=fra&comp=po
Or " php?lang=fra&comp=powerfin
Does anyone know how can I solve this issue?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
What DOCTYPE are you using? If you're using an XHTML doctype, you need to know that the ampersand & character is a special character in XML. It is used to denote the start of an entity, such as & or " (which are coverted into an ampersand and a double-quote character respectively).
For this reason, you cannot use an ampersand all by itself, because the browser will expect it to be the start of an entity reference. What you need to do is to replace the ampersand in your HTML markup (which includes the href attribute of hyperlinks) with the entity that represents the ampersand, i.e. & so that your links look like this:
index.php?lang=fra&com
php?lang=fra&comp=powe
Entity references like this are converted when the web browser discovers them, so the link will appear as desired on the web page.
>>it is possible for you to give me one URL exmaple of how to include it in the page?
I thought the usage example would help. Here is a more elaborate example:
Say your HTML is
<a href="/index.php?some=some
In your PHP you would do something like:
<a href="<?= urlencode('/index.php?some
And another one using my previous post:
<?
$myurl='http://www.mysite.
$myurl= urlencode($myurl); //encode the url
?>
Now your variable holds a properly encoded url, which can of course be used with something like this:
<a href="<?= $myurl ?>">something</a>
Business Accounts
Answer for Membership
by: EsopoPosted on 2006-12-22 at 14:31:01ID: 18189970
Hi,
de
You need to escape your URLs because you have especial reserved chars in them.
For more information on how to escape(encode) URLs in PHP:
http://us3.php.net/urlenco
Usage:
$myurl= urlencode($myurl);
Best regards,
Esopo.