Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [PHP & MySQL] eMail kommt mit PHP-Formular nicht an (https://www.gegen-bilderklau.net/thread.php?threadid=102502)


Geschrieben von tomma92 am 06.04.2007 um 15:31:

  eMail kommt mit PHP-Formular nicht an

Hi,
ich wollte ein Formular mal mit PHP machen nach dem Tut von dem VRH Adventskalender. Nur kommt i-wie keine Mail an unglücklich . Vll findet ja jemand den Fehler. Wäre echt nett.
LG Sarah

php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
<html>
<head>
<title></title>
<meta name="author" content="Turnierstall Casupa">
<link rel=stylesheet href="style.css" type="text/css">
</head>
<body>
<h1>Links</h1><br>
Hier stehen einige nützliche und interessante Links.<br>
Wenn deine Seite hier auch stehen soll, fülle einfach das unten stehende Formular aus. Allerdings sollte es schon ein Gegelink geben. Es muss nicht unbedingt was mit Pferde zu tun haben.<br><br>
<table class="table">
<tr>
 <td colspan="2" class="table1"><b>Formular</b></td>
</tr>
<tr>
<form action="links.php" name="xx" method="post">
 <td width="25%" class="table1"><b>Name</b> </td>
 <td class="table2"><input type="text" name="name" size="30" style="backgroundcolor: #FFFFFF; font-family: Verdana; font-size: 10px; border-style: dashed; border-width: 1"/> </td>
</tr>
<tr>
 <td class="table1"><b>eMail</b> </td>
 <td class="table2"><input type="text" name="mail" size="30" style="font-family: Verdana; font-size: 10px; border-style: dashed; border-width: 1"/> </td>
</tr>
<tr>
 <td class="table1"><b>Website</b> </td>
 <td class="table2"><input type="text" name="website" size="30" style="font-family: Verdana; font-size: 10px; border-style: dashed; border-width: 1"/> </td>
</tr>
<tr>
 <td class="table1"><b>Banner</b> </td>
 <td class="table2"><input type="text" name="banner" size="30" style="font-family: Verdana; font-size: 10px; border-style: dashed; border-width: 1"/> </td>
</tr>
<tr>
 <td class="table1"><b>Fragen</b> </td>
 <td class="table2"><input type="text" name="fragen" size="30" style="font-family: Verdana; font-size: 10px; border-style: dashed; border-width: 1"/> </td>
</tr>
<tr> <td colspan="2" class="table2">
<div align="center"><input type="Submit" name="send" value="Senden" style="font-family: Verdana; font-size: 10px; border-style: dashed; border-width: 1"></div>
</form>
<? $name=$HTTP_POST_VARS['name'];
$mail=$HTTP_POST_VARS['mail'];
$website=$HTTP_POST_VARS['website'];
$banner=$HTTP_POST_VARS['banner'];
$fragen=$HTTP_POST_VARS['fragen'];
if($mail != ""){
mail("casupa@web.de","Verlinkung von $website","Kontaktaufnahme: Name: $name | E-Mail: $mail | Website: $website | Banner: $banner | Fragen: $fragen","From: TS Casupa");
echo "Vielen Dank. <br> Ihre Anfrage wird so schnell wie möglich bearbeitet. Falls Sie nach einer Woche noch keine Antowrt bekommen haben sollten, schreiben Sie bitte noch einmal Ihre Nachricht.";
}
?>
</td></tr></table>
<br><br>
<table class="table">
<tr>
 <td class="table1"><b>Website</b> </td>
 <td class="table1"><b>Kurze Beschriebung</b> </td>
 <td class="table1"><b>Status</b> </td>
</tr>
<tr>
 <td class="table2">&nbsp; </td>
 <td class="table2">&nbsp; </td>
 <td class="table2">&nbsp; </td>
</tr>
</table>


</body>
</html>
</body>
</html>



Geschrieben von tomma92 am 06.04.2007 um 20:14:

 

die Datei heißt links.php



Geschrieben von tomma92 am 08.04.2007 um 18:21:

 

kann mir keiner weiterhelfen?



Geschrieben von Melli am 09.04.2007 um 12:43:

 

Huhu,

pack dein Formular, ohne dein PHP-Zeugs einfach mal in ein "formular.html" oder sowas xD
Und das PHP-Zeugs:
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
<? $name=$HTTP_POST_VARS['name'];
$mail=$HTTP_POST_VARS['mail'];
$website=$HTTP_POST_VARS['website'];
$banner=$HTTP_POST_VARS['banner'];
$fragen=$HTTP_POST_VARS['fragen'];
if($mail != ""){
mail("casupa@web.de","Verlinkung von $website","Kontaktaufnahme: Name: $name | E-Mail: $mail | Website: $website | Banner: $banner | Fragen: $fragen","From: TS Casupa");
echo "Vielen Dank. <br> Ihre Anfrage wird so schnell wie möglich bearbeitet. Falls Sie nach einer Woche noch keine Antowrt bekommen haben sollten, schreiben Sie bitte noch einmal Ihre Nachricht.";
}
?>

machste in links.php


dann müsste es gehn... xD


lG <3



Geschrieben von tomma92 am 09.04.2007 um 18:11:

 

danke, aber so wirklich klappt das jetzt auch nicht



Geschrieben von Melli am 09.04.2007 um 18:28:

 

warum? schickt er es imma noch nich?


lG <3



Geschrieben von tomma92 am 09.04.2007 um 18:33:

 

abschicken war noch kein Problem, es kommt halt nicht an ...



Geschrieben von tomma92 am 11.04.2007 um 14:10:

 

es klappt immer noch nicht ....



Geschrieben von miss_trinity am 11.04.2007 um 15:23:

 

Habs ausprobiert, bei mir funktionierts wunderbar... stimmt die Emailadresse??
und lässt dein provider per php mails verschicken zu?
Der Code ist auf jeden Fall korrekt.



Geschrieben von tomma92 am 11.04.2007 um 20:28:

 

Wir sind bei Byto und eMail-Addy ist richtig



Geschrieben von Hollywood am 12.04.2007 um 11:10:

 

hey ich habe das selbe Problem leider finde ich auch nicht den Fehler!



Geschrieben von cll am 12.04.2007 um 11:33:

 

<form action=mailto:email@sonstwas.de name="xx" method="post"> und den Kram unten <? .... > weg...


Forensoftware: Burning Board, entwickelt von WoltLab GmbH