Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validation error

Status
Not open for further replies.

amiw

Programmer
Apr 1, 2003
113
GB
When we go to validate my page I get the error message below

This page is not Valid HTML 4.01 Transitional!

Line 384, column 104: cannot generate system identifier for general entity "body"

..."mailto:?Subject=Check this site out&body=Look at this
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 "&" (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 æ 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.

Can anyone give me some advice?
 

Sure - replace "&body" with "&body".

In fact, anytime you have an ampersand anywhere in HTML, even in a URL, it should be escaped with &

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Hahahah... in fact - if you've read the error message you got back:

ErrorText said:
If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!).

Maybe you didn't spot that bit?

Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top