Visualizzazione dei risultati da 1 a 2 su 2

Discussione: php

  1. #1
    Utente di HTML.it
    Registrato dal
    Sep 2005
    Messaggi
    66

    php

    <?php

    //Werte werden festgelegt
    //Angaben f¸r die Mailsendung
    $sender_name = "info";
    $empfaenger = "info@xxx.xxx";
    $betreff = "informazione";

    //headers werden festgelegt
    $headers = "From:".$sender_name."<".$empfaenger.">\r\n";
    $headers .= "Reply-To:".$sender_name."<".$empfaenger.">\r\n";

    $nome = isset($_POST["nome"]) ? $_POST["nome"]:"";
    $cognome = isset($_POST["cognome"]) ? $_POST["cognome"]:"";
    $indirizzo = isset($_POST["indirizzo"]) ? $_POST["indirizzo"]:"";
    $Tel = isset($_POST["Tel"]) ? $_POST["Tel"]:"";
    $code = isset($_POST["code"]) ? $_POST["code"]:"";
    $citta = isset($_POST["citta"]) ? $_POST["citta"]:"";
    $stato = isset($_POST["stato"]) ? $_POST["stato"]:"";
    $email = isset($_POST["email"]) ? $_POST["email"]:"";
    $info_a = isset($_POST["arrivo"]) ? $_POST["arrivo"]:"";
    $info_b = isset($_POST["partenza"]) ? $_POST["partenza"]:"";
    $info_c = isset($_POST["persone"]) ? $_POST["persone"]:"";
    $messaggio = isset($_POST["messaggio"]) ? $_POST["messaggio"]:"";

    $posta = ("$nome, $cognome, $indirizzo, $Tel, $code, $citta, $info_a, $info_b, $info_c, $stato, $email, $messaggio");

    $nachricht ="Nome: $nome\n
    Cognome: $cognome\n
    Indirizzo: $indirizzo\n
    Tel: $Tel\n
    Citta: $code $citta\n
    Stato: $stato\n
    E-Mail: $email\n
    data di arrivo: $info_a\n
    data di partenza: $info_b\n
    Quante Persone: $info_c\n
    Messaggio: $messaggio";

    if(isset($posta)) {
    $posta = mail($empfaenger, $betreff, $nachricht, $headers);
    header("locationk.htm");

    } else {

    header("location:error.htm");
    }

    // info@xxxxx

    ?>

  2. #2
    IL TITOLO DEVE INDICARE IL CONTENUTO DELLA RICHIESTA, E' COSI' DIFFICILE DA CAPIRE ???

    Ad esempio:

    [PHP] Aprire file in scrittura
    [PHP] Gestione sessioni

    ecc...

    E basta che devo lavorare !
    Addio Aldo, amico mio... [03/12/70 - 16/08/03]

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.