Visualizzazione dei risultati da 1 a 5 su 5

Discussione: problema di apici

  1. #1

    problema di apici

    a causa di un apice singolo anzichè doppio ho un errore javascript


    echo "<tr><td>[img]_graphic/". $row[[/img]</td></tr>";


    onMouseOver=""

    dovrei riuscire a stampare questo attributo così
    ma come posso fare???

  2. #2
    metti /" , no?
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  3. #3
    vengo da altri linguaggi e acuso una grossa ignoranza non è che mi spieghi meglio??

  4. #4
    Si, scusa.
    Praticamente mettendo /" php non riconosce le virgolette come fine azione, quindi puoi mettere:

    codice:
    echo "<tr><td><a href='". $row['ParentTabFile']."?ParentTabId=".$row['ParentTabID']."' 
    onMouseOut='MM_swapImgRestore()' 
    onMouseOver=\"MM_swapImage('". $row['ParentTabName'] ."','','_graphic/". $row['ParentTabName']."_up.gif')\">
    [img]_graphic/". $row[[/img]</a></td></tr>";
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  5. #5
    Cioé mettendo \", esempio:

    echo "<form name=\"form1\" method=\"post\" action=\"conf.php\">";

    scriverà
    <form name="form1" method="post" action="conf.php">


    p.s.nel primo post avevo sbagliato tra \ e /
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

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.