Visualizzazione dei risultati da 1 a 6 su 6
  1. #1
    Utente di HTML.it
    Registrato dal
    Apr 2004
    Messaggi
    513

    validare script per guestbook

    Ciao atutti! Ho scaricato questo script php per guestbook...

    http://php.html.it/script/vedi/1686/lex-guestbook/

    l'ho installato e ho creato un mio template..e tutto ok! Funziona alla perfezione! Il problema è che genera un sacco di errori per la validazione...ma non riesco a capir bene come rimediare!
    Gli errori aumentano a man mano che aumentano i messaggi inseriti...immagino ci sia una pagina da modificare ove trovo i codici html che lo script stampa nella pagina...ma (complice la mia ignoranza in javascript e php) non riesco a trovarla!
    Potete darmi una mano? Grazie mille!

  2. #2
    Utente di HTML.it
    Registrato dal
    Apr 2004
    Messaggi
    513
    Allego parte del risultato della validazione (tutto non ci sta):

    This page is not Valid XHTML 1.0 Transitional!
    1. Error Line 13 column 10: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

    <link rel=stylesheet type="text/css" href="./templates/skins/liberiliberi.it/ale


    2. Warning Line 26 column 57: character "&" is the first character of a delimiter but occurred as data.

    ...ter.message_textarea.createTextRange && document.ajouter.message_textarea.car

    This message may appear in several cases:
    * You tried to include the "<" character in your page: you should escape it as "&lt;"
    * You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    * Another possibility is that you forgot to close quotes in a previous tag.


    3. Warning Line 26 column 58: character "&" is the first character of a delimiter but occurred as data.

    ...er.message_textarea.createTextRange && document.ajouter.message_textarea.care


    4. Warning Line 41 column 19: character "&" is the first character of a delimiter but occurred as data.

    if ((place > -1)&&(adresse.length >2)&&(point > 1))


    5. Warning Line 41 column 20: character "&" is the first character of a delimiter but occurred as data.

    if ((place > -1)&&(adresse.length >2)&&(point > 1))


    6. Warning Line 41 column 40: character "&" is the first character of a delimiter but occurred as data.

    if ((place > -1)&&(adresse.length >2)&&(point > 1))


    7. Warning Line 41 column 41: character "&" is the first character of a delimiter but occurred as data.

    if ((place > -1)&&(adresse.length >2)&&(point > 1))


    8. Warning Line 63 column 30: character "&" is the first character of a delimiter but occurred as data.

    else if (!verif_mail(mail) && mail){


    9. Warning Line 63 column 31: character "&" is the first character of a delimiter but occurred as data.

    else if (!verif_mail(mail) && mail){


    10. Warning Line 147 column 92: cannot generate system identifier for general entity "mots_search".

    ...od="post" action="./add_message.php?&mots_search=&lang=&skin=&seeAdd=& seeNote

    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.


    11. Error Line 147 column 92: general entity "mots_search" not defined and no default entity.

    ...od="post" action="./add_message.php?&mots_search=&lang=&skin=&seeAdd=& seeNote

    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.


    12. Warning Line 147 column 103: reference not terminated by REFC delimiter.

    ...ction="./add_message.php?&mots_search=&lang=&skin=&seeAdd=& seeNotes=&seeMess=

    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.


    13. Warning Line 147 column 103: reference to external entity in attribute value.

    ...ction="./add_message.php?&mots_search=&lang=&skin=&seeAdd=& seeNotes=&seeMess=

    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;'.


    14. Error Line 147 column 103: reference to entity "mots_search" for which no system identifier could be generated.

    ...ction="./add_message.php?&mots_search=&lang=&skin=&seeAdd=& seeNotes=&seeMess=

    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.


    15. Info Line 147 column 91: entity was defined here.

    ...hod="post" action="./add_message.php?&mots_search=&lang=&skin=&seeAdd=& seeNot

    16. Warning Line 147 column 109: reference not terminated by REFC delimiter.

    ..."./add_message.php?&mots_search=&lang=&skin=&seeAdd=& seeNotes=&seeMess=&test=


    17. Warning Line 147 column 111: cannot generate system identifier for general entity "skin".

    .../add_message.php?&mots_search=&lang=&skin=&seeAdd=& seeNotes=&seeMess=&test="


    18. Error Line 147 column 111: general entity "skin" not defined and no default entity.

    .../add_message.php?&mots_search=&lang=&skin=&seeAdd=& seeNotes=&seeMess=&test="


    19. Warning Line 147 column 115: reference not terminated by REFC delimiter.

    ..._message.php?&mots_search=&lang=&skin=&seeAdd=& seeNotes=&seeMess=&test=" onsu


    20. Warning Line 147 column 115: reference to external entity in attribute value.

    ..._message.php?&mots_search=&lang=&skin=&seeAdd=& seeNotes=&seeMess=&test=" onsu


    21. Error Line 147 column 115: reference to entity "skin" for which no system identifier could be generated.

    ..._message.php?&mots_search=&lang=&skin=&seeAdd=& seeNotes=&seeMess=&test=" onsu


    22. Info Line 147 column 110: entity was defined here.

    ..../add_message.php?&mots_search=&lang=&skin=&seeAdd=& seeNotes=&seeMess=&test="

    23. Warning Line 147 column 117: cannot generate system identifier for general entity "seeAdd".

    ...essage.php?&mots_search=&lang=&skin=&seeAdd=&se eNotes=&seeMess=&test=" onsubm


    24. Error Line 147 column 117: general entity "seeAdd" not defined and no default entity.

    ...essage.php?&mots_search=&lang=&skin=&seeAdd=&se eNotes=&seeMess=&test=" onsubm


    25. Warning Line 147 column 123: reference not terminated by REFC delimiter.

    ....php?&mots_search=&lang=&skin=&seeAdd=&seeNotes =&seeMess=&test=" onsubmit="ja


    26. Warning Line 147 column 123: reference to external entity in attribute value.

    ....php?&mots_search=&lang=&skin=&seeAdd=&seeNotes =&seeMess=&test=" onsubmit="ja


    27. Error Line 147 column 123: reference to entity "seeAdd" for which no system identifier could be generated.

    ....php?&mots_search=&lang=&skin=&seeAdd=&seeNotes =&seeMess=&test=" onsubmit="ja


    28. Info Line 147 column 116: entity was defined here.

    ...message.php?&mots_search=&lang=&skin=&seeAdd=&s eeNotes=&seeMess=&test=" onsub

    29. Warning Line 147 column 125: cannot generate system identifier for general entity "seeNotes".

    ...hp?&mots_search=&lang=&skin=&seeAdd=&seeNotes=& seeMess=&test=" onsubmit="java


    30. Error Line 147 column 125: general entity "seeNotes" not defined and no default entity.

    ...hp?&mots_search=&lang=&skin=&seeAdd=&seeNotes=& seeMess=&test=" onsubmit="java


    31. Warning Line 147 column 133: reference not terminated by REFC delimiter.

    ..._search=&lang=&skin=&seeAdd=&seeNotes=&seeMess= &test=" onsubmit="javascript:r


    32. Warning Line 147 column 133: reference to external entity in attribute value.

    ..._search=&lang=&skin=&seeAdd=&seeNotes=&seeMess= &test=" onsubmit="javascript:r


    33. Error Line 147 column 133: reference to entity "seeNotes" for which no system identifier could be generated.

    ..._search=&lang=&skin=&seeAdd=&seeNotes=&seeMess= &test=" onsubmit="javascript:r


    34. Info Line 147 column 124: entity was defined here.

    ...php?&mots_search=&lang=&skin=&seeAdd=&seeNotes= &seeMess=&test=" onsubmit="jav

    35. Warning Line 147 column 135: cannot generate system identifier for general entity "seeMess".

    ...earch=&lang=&skin=&seeAdd=&seeNotes=&seeMess=&t est=" onsubmit="javascript:ret


    36. Error Line 147 column 135: general entity "seeMess" not defined and no default entity.

    ...earch=&lang=&skin=&seeAdd=&seeNotes=&seeMess=&t est=" onsubmit="javascript:ret


    37. Warning Line 147 column 142: reference not terminated by REFC delimiter.

    ...lang=&skin=&seeAdd=&seeNotes=&seeMess=&test=" onsubmit="javascript:return ver


    38. Warning Line 147 column 142: reference to external entity in attribute value.

    ...lang=&skin=&seeAdd=&seeNotes=&seeMess=&test=" onsubmit="javascript:return ver


    39. Error Line 147 column 142: reference to entity "seeMess" for which no system identifier could be generated.

    ...lang=&skin=&seeAdd=&seeNotes=&seeMess=&test=" onsubmit="javascript:return ver


    40. Info Line 147 column 134: entity was defined here.

    ...search=&lang=&skin=&seeAdd=&seeNotes=&seeMess=& test=" onsubmit="javascript:re

    41. Warning Line 147 column 144: cannot generate system identifier for general entity "test".

    ...ng=&skin=&seeAdd=&seeNotes=&seeMess=&test=" onsubmit="javascript:return verif


    42. Error Line 147 column 144: general entity "test" not defined and no default entity.

    ...ng=&skin=&seeAdd=&seeNotes=&seeMess=&test=" onsubmit="javascript:return verif


    43. Warning Line 147 column 148: reference not terminated by REFC delimiter.

    ...skin=&seeAdd=&seeNotes=&seeMess=&test=" onsubmit="javascript:return verif_add


    44. Warning Line 147 column 148: reference to external entity in attribute value.

    ...skin=&seeAdd=&seeNotes=&seeMess=&test=" onsubmit="javascript:return verif_add


    45. Error Line 147 column 148: reference to entity "test" for which no system identifier could be generated.

    ...skin=&seeAdd=&seeNotes=&seeMess=&test=" onsubmit="javascript:return verif_add


    46. Info Line 147 column 143: entity was defined here.

    ...ang=&skin=&seeAdd=&seeNotes=&seeMess=&test=" onsubmit="javascript:return veri

    47. Error Line 160 column 47: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified.

    <option value="" selected>-</option>

    "VI delimiter" is a technical term for the equal sign. This error message means that the name of an attribute and the equal sign cannot be omitted when specifying an attribute. A common cause for this error message is the use of "Attribute Minimization" in document types where it is not allowed, in XHTML for instance.

    How to fix: For attributes such as compact, checked or selected, do not write e.g <option selected ... but rather <option selected="selected" ...


    48. Error Line 174 column 126: end tag for "img" omitted, but OMITTAG NO was specified.

    ...s/idee.gif" alt="idee" border="0"></a> <a href="javascript:smiley('(!)');"><i

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".


    49. Info Line 174 column 64: start tag was here.

    ...>[img]./images/smileys/idee.gif[/img] <a href="javascript:smiley('');"><im


    51. Info Line 174 column 164: start tag was here.

    ... <a href="javascript:smiley('(!)');"><img src="./images/smileys/attention.gif

  3. #3
    Per correggere gli errori, devi aprire i sorgenti e modificare il codice HTML che viene generato dallo script PHP, una cosa non semplice se non conosci PHP.

    La maggior parte degli errori sono dovuti al fatto che nei link al post di & devi mettere &_amp; (senza underscore) e l'omissione delle chiusure di molti tag.
    FEDERIX.IT - [Pillola] GRAFICA DEI FORM

    ...ho ancora quella forza che ti serve, quando dici "Si comincia!"

  4. #4
    Utente di HTML.it
    Registrato dal
    Apr 2004
    Messaggi
    513
    infatti non ci sto riuscendo!
    sapessi almeno quali sono i file in cui cercare..

  5. #5
    Utente di HTML.it
    Registrato dal
    Apr 2004
    Messaggi
    513
    nessuno sa consigliarmi almeno il file in cui metter mano...cosi almeno poi saprò di perder la testa sul file giusto?
    grazie!

  6. #6
    Non siamo mica maghi noi che riusciamo a vedere quale file ti crea il codice HTML. Se conosci il PHP non dovrebbe essere difficile per te aprire ogni singolo file e capire quali sono quelli che generano codice.
    FEDERIX.IT - [Pillola] GRAFICA DEI FORM

    ...ho ancora quella forza che ti serve, quando dici "Si comincia!"

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.