XHTML mit zwei Get-Variablen

Status
Nicht offen für weitere Antworten.

moistwanted

Erfahrenes Mitglied
Moinsen

Ich hab da ein Problem.

Ich versuche meine Webseite XHTML konform zugestalten.
An einer Stelle muss ich aber per Get Zwei variablen übergeben.

Nun bekomme ich bei W3C aber folgende Fehlermeldung:

Line 182, column 45: cannot generate system identifier for general entity "friends"

<a href="user_detail.php?id=1&friends=all">(show all)</a></p>

An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.

Mache ich bei dem Link einen Fehler oder gibt es keine dafür Möglichkeit?

Vielen Dank für eure Hilfe
 
Zuletzt bearbeitet:
Die Antwort steht schon in Deinem Beitrag.
Anstelle des "&" vor friends solltest Du einfach "&amp;" schreiben, dann klappt es!

redlama
 
Status
Nicht offen für weitere Antworten.
Zurück