variables to mail

Einklappen
Dieses Thema ist geschlossen.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • variables to mail

    <HTML>Hello everyone....

    Somebody made me a script to send ALL variables from an input form to EMAIL.

    But now I want only a few SPECIFIC fields send. So I won't get all the junk
    I don't need inside the mail. Somebody who can tell me how I change this
    script??

    Frans (The Netherlands)
    ==============================================

    # the main loop, assuming all errors got trapped above.

    while(list($key, $val) = each($HTTP_POST_VARS))

    $message .= "$key: $valn";
    }

    while(list($key, $val) = each($HTTP_GET_VARS))

    $message .= "$key: $valn";
    }
    mail( "$to", "$subject", "$message", "From: $from");

    if ($nextpage) {
    header( "Location: $nextpage");
    }

    else { // The default confirmation, just in case.
    echo "Thank you. Your message was sent successfully!";
    }

    ?>


    </HTML>

    php-Entwicklung | ebiz-consult.de
    PHP-Webhosting für PHP Entwickler | ebiz-webhosting.de
    die PHP Marktplatz-Software | ebiz-trader.de
Lädt...
X