|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
CSS Validation
I have the following line of code one one of my pages.
However, when I try to pass that page through a css validator, it gives me the follwoing error 'Please, validate your XML document first! Line 31 Column 97 The reference to entity "amount" must end with the ';' delimiter. ' I'm trying a few variations. Oddly enough, if I remove the semi colon, the page will validate, but, of course, then there's a parse error, and the code won't execute. Any sugestions? Amadeus |
|
#2
|
||||
|
||||
|
RE: CSS Validation
You should be validating the output of the script, the the script itself.
|
|
#4
|
|||||
|
|||||
|
RE: CSS Validation
That's the problem. I'm never actually echoing $amount. Below is th full code for the page (as it stands now, I've pared it back quite a bit to locate the problem.
php Code:
I'm at a bit of a loss to see why this won't pass a CSS validator. The error posted in my first post continues to be generated by this line. Any suggestions would be appreciated. |
|
#5
|
|||
|
|||
|
RE: CSS Validation
hmmm... perhaps it's not that line of code. It may have something to do with the <a href) tag specifying the quersytring parameters...
|
|
#6
|
|||
|
|||
|
RE: CSS Validation
I'm confused now. Please post a link to this page, or if you can't then view source on the output and post that.
|
|
#7
|
|||
|
|||
|
RE: CSS Validation
If you want to find CSS error you must look at the output of your php script. The validator also takes result and not the php code if you validate an URL.
|
|
#8
|
||||
|
||||
|
RE: CSS Validation
No clue = but try this:
$amount = (isset($HTTP_GET_VARS["amount"])?$HTTP_GET_VARS["amount"]:""); |
|
#9
|
|||
|
|||
|
RE: CSS Validation
Well, after trying a few things, I managed to narrow it down to a link that was on the page, the code being the following:
<a href="index.php?page=blog&amount=all" style="text-decoration:none">[ALL]</a> Apparently, the css validator did not like the use of the actual ampersand (&), it had to be switched to the %26; characyer code. LOL, live and learn. Thnaks to all for your help, it's been much appreciated. |
|
#10
|
|||
|
|||
|
RE: CSS Validation
more precisely, you should use change & into &
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > CSS Validation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|