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] Formular zuende coden (https://www.gegen-bilderklau.net/thread.php?threadid=131722)


Geschrieben von Javas am 05.04.2008 um 11:44:

  Formular zuende coden

Wer kann das Formular coden sodas es an zuchtgestuetlapalma@web.de abgeschickt werden kann??


code:
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:
<html>
<head>
<title>La palma</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Deckanfrage</h1>
<DIV align=center>
<CENTER>
<form action="action_formular.php" method="post">
<TABLE style="BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-BOTTOM: #000000 1px dashed" height=76 width="90%" border=0>
<TBODY>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="100%" bgColor=#717E8C colSpan=2 height=15><b>Anfrage</b></TD></TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Name</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="name" type="text" size="20"></TD></TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>E-Mail</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="email" type="text" size="20"></TD></TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Deckdatum</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="deckdatum" type="text" size="20"></TD> </TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Hof URL</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="hof" type="text" size="20"></TD> </TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Hofname</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="hofname" type="text" size="20"></TD> </TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Hengst URL</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="hengst" type="text" size="20"></TD> </TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Stute URL</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="stute" type="text" size="20"></TD> </TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Namensvorschlag</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="decktaxe" type="text" size="20"></TD> </TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Decktaxe</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="fohlen" type="text" size="20"></TD> </TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Mit den Bedingungen einverstanden?</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="bedingungen" type="checkbox" size="20" value="ON"></TD> </TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Fragen</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>
<input name="fragen" type="textarea" size="50" value="Text"></TD> </TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15><input name="Abschicken" value="Abschicken" type="submit"></TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15><input value="Zur&uuml;cksetzen" type="reset"></TD> </TR>
</TBODY></TABLE></FORM></CENTER></DIV>
</body>
</html>



Geschrieben von Perpetual am 05.04.2008 um 12:02:

 

Du hattest mir ja eine PN geschrieben & ich habe dir mit der (hoffentlich) richtigen Lösung geantwortet. ;D



Geschrieben von Javas am 05.04.2008 um 12:15:

 

jap jetzt kommt aber immer

code:
1:
Parse error: syntax error, unexpected T_STRING in /usr/export/www/hosting/lapalmazucht/anmeldung/action_formular.php on line 21


was ist hierran falsch??

code:
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:
<?php
  $name = $_POST['name'];
  $email = $_POST['email'];
  $deckdatum = $_POST['deckdatum'];
  $hof = $_POST['hof'];
  $hofname = $_POST['hofname'];
  $hengst = $_POST['hofname'];
  $stute = $_POST['hofname'];
  $decktaxe = $_POST['hofname'];
  $fohlen = $_POST['hofname'];
  $bedingungen = $_POST['hofname'];
  $fragen = $_POST['hofname'];
  
  else
  {
    $text = "Name: $name
E-Mail: $email
Deckdatum: $deckdatum
Hof: $hof
Hofname: $hofname
Hengst: $hengst
Stute: $stute
Decktaxe: $decktaxe
Fohlen: $fohlen
Bedingungen: $bedingungen
Fragen: $fragen";
    mail("zuchtgestuetlapalma@web.de",$betreff,$text,"From $name <$email>");
    echo "Deine e-Mail wurde erfolgreich abgeschickt.";
  }
?> 



Geschrieben von Medic Droid am 05.04.2008 um 12:52:

 

code:
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:
<?php
  $name = $_POST['name'];
  $email = $_POST['email'];
  $deckdatum = $_POST['deckdatum'];
  $hof = $_POST['hof'];
  $hofname = $_POST['hofname'];
  $hengst = $_POST['hengst'];
  $stute = $_POST['stute'];
  $decktaxe = $_POST['decktaxe'];
  $fohlen = $_POST['fohlen'];
  $bedingungen = $_POST['bedingungen'];
  $fragen = $_POST['fragen'];
  
  else
  {
    $text = "Name: $name
E-Mail: $email
Deckdatum: $deckdatum
Hof: $hof
Hofname: $hofname
Hengst: $hengst
Stute: $stute
Decktaxe: $decktaxe
Fohlen: $fohlen
Bedingungen: $bedingungen
Fragen: $fragen";
    mail("zuchtgestuetlapalma@web.de",$betreff,$text,"From $name <$email>");
    echo "Deine e-Mail wurde erfolgreich abgeschickt.";
  }
?> 



Geschrieben von Javas am 05.04.2008 um 18:52:

 

und wie mach ich den if teil??



Geschrieben von Medic Droid am 06.04.2008 um 08:02:

 

ich weiß was dir fehlt, du musst vor dem else noch den If-teil, den du anscheinend vergessen hast, anfügen

php:
1:
2:
3:
4:
if ( ($name == "") OR ($email == "") OR ($pferd == "") )
  {
    echo "Du hast nicht alle Felder ausgefüllt! Gehe <a href='javascript:back()'>zurück</a> und korrigiere dies!";
  }


die variabeln sind natürlich wieder wählbar



Geschrieben von Java0007 am 06.04.2008 um 09:40:

 

ok thx jetzt gehts großes Grinsen



Geschrieben von Medic Droid am 06.04.2008 um 09:43:

 

kein problem :>

übrigens, DA?


Forensoftware: Burning Board, entwickelt von WoltLab GmbH