Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    [w3c] valore in querystring

    Ciao a tutti,

    Il validatore di w3c mi restituisce vari errori su un link contenente dei valori da passare via querystring:

    codice:
    Warning Line 105 column 56: cannot generate system identifier for general entity "vai".
    ...006, 13.48<a href="visdisc.asp?d=304&vai=ultimo" title="visualizza l'ultimo m
    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. 
    
    ✉ 
    
    Error Line 105 column 56: general entity "vai" not defined and no default entity.
    ...006, 13.48<a href="visdisc.asp?d=304&vai=ultimo" title="visualizza l'ultimo m
    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. 
    
    ✉ 
    
    Warning Line 105 column 59: reference not terminated by REFC delimiter.
    ..., 13.48<a href="visdisc.asp?d=304&vai=ultimo" title="visualizza l'ultimo mess
    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.
    C'è un modo in cui posso risolvere ?

    il Doctype è XHTML 1.0 Strict

    Grazie 1000
    SGr33n

  2. #2
    devi trasformare i vari caratteri in entità html ossia & per esempio lo devi sostituire con &_amp; senza underscore

  3. #3
    Grazie 1000 non sapevo si dovesse usare questo codice anche nelle querystring
    SGr33n

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.