Re: [WSG] PHP validation problem

2011-12-14 Thread Bob Schwartz
The file when saved as a noPHPcode html file passes validation, it fails when doing a live validation.No the messages did not help (at least I can't find anything wrong):Validation Output: 3 Errors Line 28, Column 5: end tag for "DIV" omitted, but its declaration does not permit this✉You forgot to close a tag, oryou used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag. Line 27, Column 1: start tag was here
 Line 28, Column 5: end tag for "DIV" omitted, but its declaration does not permit this✉You forgot to close a tag, oryou used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag. Line 26, Column 1: start tag was here
 Line 28, Column 5: end tag for "DIV" omitted, but its declaration does not permit this✉You forgot to close a tag, oryou used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag. Line 24, Column 1: start tag was here
Bob Schwartz I have a PHP file that fails validation.The W3C validator claims that there are three divs missing their closing tag, or that perhaps there is something in the divs that the validator doesn't like.I saved the php you included to a file, validated it by upload onhttp://validator.w3.org/ and it passed as HTML 4.01 Strict.  How didit fail for you?  Did the links to more information on the errors nothelp?Confused,-- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op.http://koha-community.org supporter, web and library systems developer.In My Opinion Only: see http://mjr.towers.org.uk/email.htmlAvailable for hire (including development) at http://www.software.coop/***List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfmUnsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfmHelp: memberh...@webstandardsgroup.org*** ***List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfmUnsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfmHelp: memberh...@webstandardsgroup.org***

Re: [WSG] PHP validation problem

2011-12-14 Thread MJ Ray
Bob Schwartz 
> I have a PHP file that fails validation.
> 
> The W3C validator claims that there are three divs missing their closing tag, 
> or that perhaps there is something in the divs that the validator doesn't 
> like.

I saved the php you included to a file, validated it by upload on
http://validator.w3.org/ and it passed as HTML 4.01 Strict.  How did
it fail for you?  Did the links to more information on the errors not
help?

Confused,
-- 
MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op.
http://koha-community.org supporter, web and library systems developer.
In My Opinion Only: see http://mjr.towers.org.uk/email.html
Available for hire (including development) at http://www.software.coop/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



[WSG] PHP validation problem

2011-12-14 Thread Bob Schwartz
I have a PHP file that fails validation.

The W3C validator claims that there are three divs missing their closing tag, 
or that perhaps there is something in the divs that the validator doesn't like.

I suspect the later as I did a "view source" and copied the code (minus the PHP 
code, in this case) to a new file, saved it as html and ran it through the 
validator and it passed.

Here's the code (minus a few meta tags to make it shorter) - maybe another set 
of eyes...:



http://www.w3.org/TR/html4/strict.dtd";>















ISBN 
'.$result_product['isbn_no']; }

$author = '';
if ($result_product['author_id'] != 0) {
$author = get_content('custom_authors','fname',$result_product['author_id']).' 
'.get_content('custom_authors','lname',$result_product['author_id']);
if (get_content('custom_authors','suffix',$result_product['author_id']) != '') 
{ $author .= ', 
'.get_content('custom_authors','suffix',$result_product['author_id']); }
}
if ($result_product['coauthor_id'] != 0) {
$author .= ' and 
'.get_content('custom_authors','fname',$result_product['coauthor_id']).' 
'.get_content('custom_authors','lname',$result_product['coauthor_id']);
if (get_content('custom_authors','suffix',$result_product['coauthor_id']) != 
'') { $author .= ', 
'.get_content('custom_authors','suffix',$result_product['coauthor_id']); }
}

$subtitle = '';
if ($result_product['subtitle'] != '') { $subtitle = 
':'.$result_product['subtitle']; }
$title = $result_product['title'].$subtitle;

echo '
'.$title.'
'.$edit_type.' '.$author.'


'.$result_product['content'].'
'.$result_product['description'].'
'.$isbn.'
';

}
?>












***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***