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] Berichtebuch funktioniert nicht (https://www.gegen-bilderklau.net/thread.php?threadid=170768)


Geschrieben von Flying Banana am 16.04.2010 um 18:45:

  Berichtebuch funktioniert nicht

Hab den Code von "VRH-Adventskalender"
Türchen 14
Bericht kann man schreiben, wird dann auch weitergeleitet, aber der Bericht erscheint nicht im Berichtebuch.

Wo ist der Fehler?

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:
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>main</title>
  <style>
body { scrollbar-face-color: #F3EEE9;
scrollbar-highlight-color: #F3EEE9;
scrollbar-3dlight-color: #F3EEE9;
scrollbar-darkshadow-color: #F3EEE9;
scrollbar-shadow-color:#F3EEE9;
scrollbar-arrow-color: #F3EEE9;
scrollbar-track-color: #F3EEE9;
  </style>
  <style type="text/css">
  </style>
</head>
<body
 style="background-image: url(http://pzlirane.bplaced.com/layout/main.jpg);">
<form action="bericht.php" method="post">
  <p align="center"><br>
  <small style="font-family: Verdana;">Hier kannst du
deinen Bericht schreiben.
  </small><br>
  <br>
  <br>
  <small><span style="font-family: Verdana;">Hund
(bitte vollst&auml;ndigen Namen):</span></small> <input
 size="23" name="hund"
 style="border-style: solid; border-width: 1px; font-family: Verdana; font-size: 12px;"
 type="text"> <br>
  <br>
  <small><span style="font-family: Verdana;">Titel:</span></small><br>
  <input size="62" name="title"
 style="border-style: solid; border-width: 1px; font-family: Verdana; font-size: 12px;"
 type="text"> <br>
  <br>
  <small><span style="font-family: Verdana;">Dein
Bericht:</span></small><br>
  <br>
  <textarea rows="20" name="text" cols="60"
 style="border-style: dotted; border-width: 1px; font-family: Verdana; font-size: 12px;"></textarea>
  <br>
  <br>
  <input value="Bericht eintragen" type="submit"> <br>
  <br>
  </p>
</form>
</body>
</html>


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:

<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>main</title>
  <style>
body { scrollbar-face-color: #F3EEE9;
scrollbar-highlight-color: #F3EEE9;
scrollbar-3dlight-color: #F3EEE9;
scrollbar-darkshadow-color: #F3EEE9;
scrollbar-shadow-color:#F3EEE9;
scrollbar-arrow-color: #F3EEE9;
scrollbar-track-color: #F3EEE9;
  </style>
  <style type="text/css">
  </style>
</head>
<body
 style="background-image: url(http://pzlirane.bplaced.com/layout/main.jpg);">
<div style="text-align: center;"><br>
<br>
<? $pferd=$HTTP_POST_VARS['pferd'];
$text=$HTTP_POST_VARS['text'];
$title=$HTTP_POST_VARS['title'];
// Code von Unicorn/N. Heppler. Verändern und Verwenden auf Webseiten erlaubt, solange dieser Verweis drin bleibt. 

$time = time();
$datum = date("d.m.Y, H:i", $time);

$datei = fopen("t_$hund.htm","a+");
$inhalt="<br><table border="0" cellpadding="5" cellspacing="0" width="400" style=" border-style: dotted; border-width: 1; font-family:Verdana; font-size:12px">
<tr>
<td width="400" align="center"> $datum, <b>Bericht von $uname: $title,</b> <br> <br> $text</td>
</tr> <tr>
<td align="center"> <i>Bewertung</i><br></td> </tr>
</table>";

fwrite($datei, $inhalt);
fclose($datei);
?>



<table border="0" cellpadding="5" cellspacing="0" width="424" style="font-family: Verdana; font-size: 12px; border-style: dotted; border-width: 1">
<tr>
<td align="center" >
Dein Bericht wurde erfolgreich gespeichtert. <a href="http://pzlirane.bplaced.com/internlayout.html"> zurück zum Internbereich</a>
</td> 
</td> 
</tr>
</table> 



</span></small></div>
</body>
</html>


Berichtebuch von t_probi.htm:
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:
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>main</title>
  <style>
body { scrollbar-face-color: #F3EEE9;
scrollbar-highlight-color: #F3EEE9;
scrollbar-3dlight-color: #F3EEE9;
scrollbar-darkshadow-color: #F3EEE9;
scrollbar-shadow-color:#F3EEE9;
scrollbar-arrow-color: #F3EEE9;
scrollbar-track-color: #F3EEE9;
  </style>
  <style type="text/css">
  </style>
</head>
<body
 style="background-image: url(http://pzlirane.bplaced.com/layout/main.jpg);">
<div style="text-align: center;"><br>
<small style="font-family: Verdana;">Das ist das
Berichtebuch deines Hundes.<br>
<br>
<br>
</small><br>
</div>
</body>
</html>



Geschrieben von callous. am 16.04.2010 um 19:00:

 

Wie wärs, wenn du t_$hund.htm als EINZELNE datei machst und dann beispielsweise die Datei berichtebuch.php erstellst und anschließend an der beliebigen Stelle die Seite t_$hund.htm includest?



Geschrieben von Flying Banana am 16.04.2010 um 19:01:

 

?


Forensoftware: Burning Board, entwickelt von WoltLab GmbH