IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

HTML Discussion :

[XHTML] Validation d'une page en XHTML transitional générée en PHP


Sujet :

HTML

  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Mai 2004
    Messages
    551
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2004
    Messages : 551
    Par défaut [XHTML] Validation d'une page en XHTML transitional générée en PHP
    Bonjour à tous, ci joint un copier coller de ma validation sur http://validator.w3.org

    Je conçoit un site en php et souhaiterai vérifier toutes les pages générées en XHTML. Est-ce envisageable?

    J'ai une erreur récurrente sur de nombreuses pages dont voici un extrait. J'ai besoin de variables GET mais la validation du lien en XHTML ne se fait pas correctement.


    ---------------------------------------------------------
    1. Warning Line 182 column 45: cannot generate system identifier for general entity "numcontact".

    <a href="./info/contact.php?numsite=6&numcontact=1">SION</a>

    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (. The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

    Entity references start with an ampersand (&) and end with a semicolon (. If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

    If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

    Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.


    2. Error Line 182 column 45: general entity "numcontact" not defined and no default entity.

    <a href="./info/contact.php?numsite=6&numcontact=1">SION</a>

    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.


    3. Warning Line 182 column 55: reference not terminated by REFC delimiter.

    <a href="./info/contact.php?numsite=6&numcontact=1">SION</a>

    If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.


    4. Warning Line 182 column 55: reference to external entity in attribute value.

    <a href="./info/contact.php?numsite=6&numcontact=1">SION</a>

    This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&amp;'.


    5. Error Line 182 column 55: reference to entity "numcontact" for which no system identifier could be generated.

    <a href="./info/contact.php?numsite=6&numcontact=1">SION</a>

    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.


    6. Info Line 182 column 44: entity was defined here.

    <a href="./info/contact.php?numsite=6&numcontact=1">SION</a>




    -------------------------------------------------------------------

    Lire les comme ; )

    Mon site est sécurisé en https, htaccess et utilise les sessions php... Pour la validation la session est importante car elle définit énormément de variable.

    Une validation de pages générées en PHP est elle courante ?

  2. #2
    Modérateur
    Avatar de blueice
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2003
    Messages
    3 494
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 50
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2003
    Messages : 3 494
    Par défaut
    Tes adresses doivent être encodées.
    Le '&' doit devenir '&amp;' par exemple.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 9
    Dernier message: 04/03/2011, 11h58
  2. Ouvrir un .doc à partir d'une page web(xhtml)
    Par pepitoluna dans le forum Balisage (X)HTML et validation W3C
    Réponses: 8
    Dernier message: 19/08/2009, 15h27
  3. validation d'une page?
    Par zalalus dans le forum ASP.NET
    Réponses: 2
    Dernier message: 03/12/2007, 15h23
  4. [XHTML 1.1] Validation d'une page contenant du javascript
    Par jacquesh dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 27/02/2006, 14h53
  5. [XHTML] [débutant] Ouvrir une page dans une page xhtml
    Par wikers dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 14/02/2006, 16h20

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo