Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > HTML 4.01 validation of PHP document

HTML 4.01 validation of PHP document
Thread Tools
Junior Member
Join Date: Jul 2002
Location: Hang Loose, Hawaii
Status: Offline
Reply With Quote
Aug 21, 2002, 10:39 PM
 
i'm getting the following error w/ the W3 validator:

• Line 63, column 35:

... href="browse.php?action=add&id=GC11&qty=10 &subject=GC ...
^

Error: unknown entity "id"
what is up with this now? i can't have a link to a script w/ multiple variables on the URI and have a valid doc at the same time?
Can I have that cookie?
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
Aug 22, 2002, 08:33 AM
 
Originally posted by ilukas:
i'm getting the following error w/ the W3 validator:

what is up with this now? i can't have a link to a script w/ multiple variables on the URI and have a valid doc at the same time?
You need to replace your "&"s with "&amp" and a closing ";" I can't use the correct thinge here because it gets interperted in html so you should replace all &'s by "& a m p ;" : all attached.
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Santa Fe
Status: Offline
Reply With Quote
Aug 22, 2002, 02:11 PM
 
I second that recommendation. Replace every instance of "&" with "&"
     
Professional Poster
Join Date: Oct 2000
Location: Toronto, ON
Status: Offline
Reply With Quote
Aug 22, 2002, 02:42 PM
 
Originally posted by ilukas:
what is up with this now? i can't have a link to a script w/ multiple variables on the URI and have a valid doc at the same time?
If that's the only thing that you're getting an error on, then your code is compliant. No need to replace the ampersands in the URL with the HTML entities, becuase they're not being used as entities.

Don't worry about it.
The Lord said 'Peter, I can see your house from here.'
     
ilukas  (op)
Junior Member
Join Date: Jul 2002
Location: Hang Loose, Hawaii
Status: Offline
Reply With Quote
Aug 23, 2002, 05:51 AM
 
Originally posted by ReggieX:


If that's the only thing that you're getting an error on, then your code is compliant. No need to replace the ampersands in the URL with the HTML entities, becuase they're not being used as entities.

Don't worry about it.
that's what i thought after i found out what an entity is… the code is compliant, the validator just isn't sophisticated enough.

thanx ReggieX
Can I have that cookie?
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Santa Fe
Status: Offline
Reply With Quote
Aug 26, 2002, 11:16 AM
 
Originally posted by ilukas:


that's what i thought after i found out what an entity is… the code is compliant, the validator just isn't sophisticated enough.

thanx ReggieX
Actually, the W3C do recommend using the ampersand entity in links. Your browser will automatically convert it to an ampersand before it sends the querystring.

So according to the W3C experts, the validator is correct in this regard. You'll notice that BBEdit's built-in HTML validator makes the same recommendation. Here's why.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:11 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2