SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: PHP Includes

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2012
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Includes

    Hi all
    When i validate my HTML code it comes up with errors for <? which is part of the PHP include. My question is should the error be addressed and if so how, or is this normal because the validator is looking for pure HTML and thus the error should be ignored.

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,506
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    You should validate the resulting HTML/CSS code (the code you see in your browser), not the original script with the PHP code in it.

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2012
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by guido2004 View Post
    You should validate the resulting HTML/CSS code (the code you see in your browser), not the original script with the PHP code in it.
    Thanks for the quick response guido2004. That's a relief.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •