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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validator does not see the added content

Status
Not open for further replies.

Areal3

Programmer
Aug 10, 2015
2
PL
Hello,
For all the subpages with the parameter of the GET charged me with some content-dependent file name of the page and the selected language. The problem is not the script but its visibility through the validator, because on this website, does not see the validator that the party index_content has been loaded and displays the code as:




HTML:
<table class="contentpaneopen">   // there should be loaded index file content, and indeed it is, but the validator can not see
</table>





My code of index.php (the only important part):





PHP:
 <table class="contentpaneopen">

                                        <?php
                                        $album = $_GET['album'];

                                        if (!empty($page) && empty($album)) {
                                            include ($langs . '/' . $page . '.php');
                                        } else if (($page == 'gallery_album') && !empty($album)) {
                                            include ( 'galeria/' . $album . '.html');
                                        } else if (empty($page) && empty($album)) {

                                            include ($langs . '/' . 'index_content.php');
                                        } else {
                                            include ($langs . '/' . 'index_content.php');
                                        }
                                        ?>



                                    </table>


Once again, the page works properly index the content is loading, but why validator can not see? how to make saw. And if not, how to eliminate a bug in validatorze, but without deleting the table, just by typing there something that does not spoil other subpages, and does not add any apparent content. :>
 
'validators' only see the "hard code" served out in response to the user agent HTTP: request. They do not run javascript or parse and render CSS, the only thing a validator does is act as a "spelling and grammar check" for HTML and CSS code


And really, your question should be in forum215 as it is nothing at all to do with PHP.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top