Hallo, ich bin blutiger Anfänger. Keine Angst ich bin kein Möchtegern-Webdesigner, ich habs leider jemandem in der Familie versprochen Die Seite ist bereits testhalber online und nun versuche ich noch das Formular zu schaffen… (EMail, Server und Co hab ich geschafft)
Es ist so, ich hab mir ein Template gesaugt und bearbeite das mit Dreamweaver. Jetzt ist da eine Seite mit einem Kontaktformular die da „contact.php“ heißt.
In Dieser Seite befindet sich ein Code der das Formular betrifft:
<h2>Kontaktinfo</h2>
<p>Bei Fragen, Wünschen oder Anregungenfreuen wir uns über Ihre Nachricht. Rufen Sie uns kostenlos unter <span class="phone"></span>, an oder schreiben Sie eine E-Mail im Kontakformular. Herzlichen Dank.</p>
<div id="contact-notification-box-success" class="notification-box notification-box-success" style="display: none;">
<p>Vielen Dank. Ihre Nachricht wurde gesendet. Wir melden uns umgehend bei Ihnen.</p>
<a href="#" class="notification-close notification-close-success">x</a>
</div>
<div id="contact-notification-box-error" class="notification-box notification-box-error " style="display: none;">
<p id="contact-notification-box-error-msg" data-default-msg="Ihre Nachricht konnte nicht gesendet werden. Bitte versuchen Sie es nocheinmal."></p>
<a href="#" class="notification-close notification-close-error">x</a>
</div>
<form id="contact-form" class="content-form" method="post" action="#">
<p>
<label for="name">Name:<span class="note">*</span></label>
<input id="name" type="text" name="name" class="required">
</p>
<p>
<label for="email">Email:<span class="note">*</span></label>
<input id="email" type="email" name="email" class="required">
</p>
<p>
<label for="url">Website:</label>
<input id="url" type="url" name="url">
</p>
<p>
<label for="subject">Betreff:<span class="note">*</span></label>
<input id="subject" type="text" name="subject" class="required">
</p>
<p>
<label for="message">Nachricht:<span class="note">*</span></label>
<textarea id="message" cols="68" rows="8" name="message" class="required"></textarea>
</p>
<?php
if(ENABLE_CAPTCHA){
require_once ('recaptcha/recaptchalib.php');
echo '<p>';
echo recaptcha_get_html($captcha_public_key, null, USE_SSL);
echo '</p>';
}
?>
<p>
<input id="submit" class="button" type="submit" name="submit" value="Absenden">
</p>
</form>
<p><span class="note">*</span> Pflichtfelder</p>
<!-- end contact form -->
Zusätzlich habe ich noch gesehen, dass es sowas wie eine Begleitdatei gibt die da „contact_processor.php“ heißt,
in der steht folgendes:
You have just received an email from the $current_host address.
"; $email_message .= "Please find below the data from the contact form:
"; $email_message .= "";
$email_message .= "" . htmlspecialchars($key) . "
";
$email_message .= "" . htmlspecialchars($value) . "";
$email_message .= "