 |
 |
HTML 4.01 validation of PHP document
|
 |
|
 |
|
Junior Member
Join Date: Jul 2002
Location: Hang Loose, Hawaii
Status:
Offline
|
|
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
|
|
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 "&" 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
|
|
I second that recommendation. Replace every instance of "&" with "&"
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 2000
Location: Toronto, ON
Status:
Offline
|
|
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.'
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jul 2002
Location: Hang Loose, Hawaii
Status:
Offline
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |