Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. ilsommo666
    3. Post
    I

    ilsommo666

    @ilsommo666

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 1
    • Post 3
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    0
    Reputazione
    3
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Newbie

    Post creati da ilsommo666

    • RE: Errore sintassi guestbook

      eh già.. la tonda.. non ci avevo fatto caso.. chiedo perdono! 🙂
      Grazie ancora! cmq funziona.. ho un po' da mettere a posto.. se vuoi vederlo il link è:
      http://guinnesstime.altervista.org/altro/index.php3

      postato in Coding
      I
      ilsommo666
    • RE: Errore sintassi guestbook

      grazie della risposta.. ma mi da ancora errore in sintassi qui:
      [php]if(empty($message)|| empty($email)|| empty($person) $error = "yes";[/php]
      mi dice "unexpected T_VARIABLE"... dottore, che ha che non va? è curabile?

      postato in Coding
      I
      ilsommo666
    • Errore sintassi guestbook

      Ciao gente.. sono un nuovissimo utente di questo forum!
      Ho scaricato da internet un file di un guestbook in PHP, per studiarmelo e modificarmelo. Una volta che ho modificato il tutto mi da un errore di sintassi sulla linea 96!
      Mi da questo errore:

      Parse error: syntax error, unexpected T_IF in /membri/guinnesstime/altro/index.php3 on line 96
      ``` questo è il codice della parte:
      [php]if($action=="Invia") {
      if(empty($message)
      || empty($email)
      || empty($person)
      if($error=="yes") {    //qui linea 96
      
      echo"<big>The Following errors have occurred, please press the back button and fix them.</big><hr>";
      
      if(empty($message)) { echo"Please enter your comments<br>"; }
      if(empty($email)) { echo"Please enter your email address<br>"; }
      if(empty($person)) { echo"Please enter your name<br>"; }
      
      echo"<hr>";
      
      } else {
      
      $print_text = "|$date_output|$person|$email|$site_address|$message|\n";
      
              $fp = fopen($logfile, "a");
              $fw = fwrite($fp, $print_text);
              fclose($fp);
      
      $message = str_replace ("<br>","\n", $message);
      $like_added = str_replace ("<br>","\n", $like_added);
      
      mail("$email", "$email_msg_title", "$email_msg", "From: <$admin_email>");
      mail("$admin_email", "Someone signed your GuestBook", "$date_output
      Name: $person
      Email: $email
      Site address: $site_address
      Comments: $message
      ", "From: <$admin_email>");
      echo "<center><hr>Thanks For signing!<br>\n";
      echo "<a href=?action=view>View GuestBook</a><hr></center>";
      
          }
      }[/php] Grazie a tutti per l'aiuto..!
      postato in Coding
      I
      ilsommo666