我有一個是做什麼工作的一個接觸的形式,我只得到兩個公告:注意:未定義的變量:email_content
注意:未定義的變量:email_content 注意:未定義的變量:頭
這是代碼
// check if an error was found - if there was, send the user back to the form
if (isset($error)) {
$_POST['e'] = $error;
} else {
// write the email content <-- HERE IS WHERE THE ERROR OCCURS
$email_content .= "Naam:" . htmlspecialchars($name, ENT_QUOTES) . "\n\n";
$email_content .= "Tel:" . htmlspecialchars($tel, ENT_QUOTES) . "\n\n";
$email_content .= "E-mail:" . htmlspecialchars($email_address, ENT_QUOTES) . "\n\n";
$email_content .= "Onderwerp:" . htmlspecialchars($onderwerp, ENT_QUOTES) . "\n\n";
$email_content .= "Bericht:" . htmlspecialchars($message, ENT_QUOTES) . "\n\n";
/*
$email_content .= "Naam:$name\n\n";
$email_content .= "Tel:$tel\n\n";
$email_content .= "E-mail:$email_address\n\n";
$email_content .= "Onderwerp:$onderwerp\n\n";
$email_content .= "Bericht:$message\n\n";
*/
$header .= 'From: www.UTI.nl'; <-- AND HERE IS ALSO WHERE THE ERROR OCCURS
// send the email
mail ("[email protected]", "Nieuw bericht van de UTI website", $email_content, $header); <-- this is
// send the user back to the form
$_POST['s'] = 'Bedankt voor uw bericht.';
我在想什麼?我希望你們能幫助我。
親切的問候,
羅賓
這樣做,謝謝你的快速反應! – user2314339 2013-04-24 12:55:15