hallo,habe hier ein Kontaktformular doch leider sendet es nicht mehr.
Das Formular besteht aus zwei dateien formular.php und formular-senden.php
PHP
<?php
$emailempfaenger="meineadresseweb.de";
$name="ja";
$adresse="ja";
$telefon="ja";
$name=strtolower($name);
$name=trim($name);
$adresse=strtolower($adresse);
$adresse=trim($adresse);
$telefon=strtolower($telefon);
$telefon=trim($telefon);
echo '<font size="+2">[b]Kontaktformular[/b]</font>
';
echo '<form action="formular-senden.php" method="post" >';
echo '<input type="Hidden" name="emailempfaenger" value="';
echo $emailempfaenger;
echo '">';
echo '<input type="Hidden" name="aname" value="';
echo $name;
echo '">';
echo '<input type="Hidden" name="adresse" value="';
echo $adresse;
echo '">';
echo '<input type="Hidden" name="telefon" value="';
echo $telefon;
echo '">';
echo '<table >';
echo '<tr>';
echo '<td>';
if ($name=="ja")
{
echo "[b]Ihr Name:[/b]";
}
echo '</td>';
echo '<td>';
echo '<input type="Text" name="absendername" size="40" maxlength="40">';
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>';
if ($adresse=="ja")
{
echo "[b]Straße:[/b]";
}
echo '</td>';
echo '<td>';
echo '<input type="Text" name="absenderstrasse" size="40" maxlength="80">';
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>';
if ($adresse=="ja")
{
echo "[b]Postleitzahl / Ort:[/b]";
}
echo '</td>';
echo '<td>';
echo '<input type="Text" name="absenderort" size="40" maxlength="80">';
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>';
if ($telefon=="ja")
{
echo "[b]Telefon:[/b]";
}
echo '</td>';
echo '<td>';
echo '<input type="Text" name="absendertelefon" size="15" maxlength="15">';
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>';
echo "[b]Ihre Emailadresse:[/b]";
echo '</td>';
echo '<td>';
echo '<input type="Text" name="absenderemail" size="40" maxlength="80">';
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>';
echo "[b]Grund Ihrer Anfrage:[/b]";
echo '</td>';
echo '<td>';
echo '<select name="absendergrund" size="1">';
echo '<option value="allgemeine-anfrage">Allgemeine Anfrage</option>';
echo '<option value="anfrage-zum-angebot">Anfrage zu Ihren Angeboten</option>';
echo '<option value="bitte-um-kontaktaufnahme">Bitte um Kontaktaufnahme</option>';
echo '</select>';
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>';
echo "[b]Ihre Mitteilung:[/b]";
echo '</td>';
echo '<td>';
echo '<textarea name="absendermitteilung" cols="80" rows="10"></textarea>';
echo '</td>';
echo '</tr>';
echo '</table>';
echo '<font size="-2">Wenn Sie auf Absenden klicken wird Ihre email an ';
echo $emailempfaenger;
echo ' gesendet !</font>
';
echo '<input type="Submit" name="" value="Absenden">';
echo '</form>';
?>
Alles anzeigen
hoffe es kann mir jemand weiterhelfen?
topkick