contact form

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Caren
Posts: 33
Joined: Mon 30. Aug 2004, 14:19

contact form

Post by Caren »

hi,

mein graphic designer hat ein "schönes" Kontaktformular entworfen, nur kommt leider auf dem nix an, weil wahrscheinlich keine zielemail definiert wurde??? Das ganze ist im Artikelfeld "html" gesetzt. Wie kann ich das so ergänzen, das ich die mail auch bekomme ;-)

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">So nehmen Sie Kontakt zu uns auf:</td>
</tr>
<tr>
<td width="22%">&nbsp;</td>
<td width="78%">&nbsp;</td>
</tr>
<tr>
<td valign="top"><strong>Postanschrift:</strong></td>
<td>meine Adresse<br>
<br>
Deutschland</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><strong>Telefon:</strong></td>
<td>+49 (0)</td>
</tr>
<tr>
<td><strong>Fax:</strong></td>
<td>+49 (0) </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><strong>Email:</strong></td>
<td><a href="mailto:kontakt@meinedomain.com">kontakt@meinedomain.com</a></td>
</tr>
<tr>
<td><strong>Web:</strong></td>
<td><a href="http://www.meinedomain.com">www.meinedomain.com</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">Oder f&uuml;llen Sie einfach das unten stehende Email-Formular aus.</td>
</tr>
</table>
<form name="form2" method="post" action="index.php?contactform">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="22%">Ihr Name:</td>
<td width="78%"><input name="name" type="text" id="name"></td>
</tr>
<tr>
<td width="22%">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Ihre Email:</td>
<td><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td valign="top"><p>Ihr Kommentar:</p></td>
<td><textarea name="comments" rows="6" id="comments"></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Weiter"></td>
</tr>
</table>
</form>
Pappnase

Post by Pappnase »

hallo caren

suche mal bitte nach einem artikel von mir! html e-mail ode email from! da bekommst du irgendwo die lösung!*lächel*
ich schau auch gleich mal ob ich es finde!
Caren
Posts: 33
Joined: Mon 30. Aug 2004, 14:19

Post by Caren »

aus irgendeinem grund kann ich keine pn mehr schicken... zu deiner frage: ja, bitte

bezügl, der info für form, ich hab einiges gefunden, weiß aber nicht, ob du das meintest....

caren
Pappnase

Post by Pappnase »

hallo caren

ich meinet den thread hier:
http://www.phpwcms.de/forum/viewtopic.p ... =html+form
Caren
Posts: 33
Joined: Mon 30. Aug 2004, 14:19

Post by Caren »

sorry, da ich mich nicht auskenne, bauche ich eine Zeile, die sagt, dies soll gesendet werden und wohin...

was ist hier falsch?



<?php

$NAME = @$_POST["name"];
$EMAIL = @$_POST["email"];
$COMMENTS = @$_POST["comments"];
$nesletter = @$_POST["nesletter"];
$fragen = @$_POST["fragen"];
$tel = @$_POST["tel"];
$subject = "contact form from meinedomain.com";
$receiver = "info@meinedomain.com";


// Set the string to be written to the file

$message = "$COMMENTS\r\n";
$message .= "$NAME\r\n";
$message .= "ich möchte den Newsletter abonnieren: $nesletter\r\n";
$message .= "ich habe weitere Fragen, bitte rufen Sie mich an: $fragen\r\n";
$message .= "Tel: $tel\r\n";

$sent = mail($receiver,
$subject, $message, "From: $NAME");
if ($sent) {
echo "Anfrage sendete";
}
else {
echo "Anfrage nicht gesendet";
}


?>
Post Reply