Witam wszystkich.
Mam taki "mały" problem (od razu nadmienie że z php jestem zielony) potrzebuje forum do strony ale musi zapisywać dane do pliku bez użycia bazy danych
znalazłem w sieci takie proste forum - składa się z 3 plików ale nie chce zapiywać ani wyświetlać wprowadzonych danych do formularza
mam nadzieje że nie będziecie krzyczeć ale umieszcze kodu wszystkich tych plików
plik: forum.html
<?php
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="">
<table cool width="566" height="716" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx usegridx gridy="16" showgridy usegridy> <td width="1" height="16"><spacer type="block" width="1" height="16"></td> <td width="48" height="16" colspan="1" rowspan="1" valign="top" align="left" xpos="0"> <form name="Forum" action="post.php" method="post" enctype="application/x-www-form-urlencoded"> <td width="1" height="64"><spacer type="block" width="1" height="64"></td> <td width="48" height="64"></td> <td width="32" height="64"></td> <td width="16" height="64"></td> <td width="16" height="64"></td> <td width="16" height="64"></td> <td width="240" height="64" colspan="5" rowspan="1" valign="top" align="left" xpos="128" content csheight="32"> <h3>Forum: title goes here
</h3> <td width="176" height="64"></td> <td width="21" height="64"></td> <td width="1" height="32"><spacer type="block" width="1" height="32"></td> <td width="48" height="32"></td> <td width="496" height="32" colspan="10" rowspan="1" valign="top" align="left" xpos="48"> <hr size="15" width="384" color="9999cc" height="45"> <td width="21" height="32"></td> <td width="1" height="48"><spacer type="block" width="1" height="48"></td> <td width="48" height="48"></td> <td width="32" height="48"></td> <td width="16" height="48"></td> <td width="48" height="48" colspan="4" rowspan="1" valign="top" align="left" xpos="96" content csheight="32">Name:
</td> <td width="224" height="48" colspan="3" rowspan="1" valign="top" align="left" xpos="144"><input type="text" name="name" size="24"></td> <td width="176" height="48"></td> <td width="21" height="48"></td> <td width="1" height="32"><spacer type="block" width="1" height="32"></td> <td width="48" height="32"></td> <td width="32" height="32"></td> <td width="16" height="32"></td> <td width="46" height="32" colspan="3" rowspan="1" valign="top" align="left" xpos="96" content csheight="32">Topic:
</td> <td width="2" height="32"></td> <td width="224" height="32" colspan="3" rowspan="1" valign="top" align="left" xpos="144"><input type="text" name="topic" size="24"></td> <td width="176" height="32"></td> <td width="21" height="32"></td> <td width="1" height="32"><spacer type="block" width="1" height="32"></td> <td width="48" height="32"></td> <td width="496" height="32" colspan="10" rowspan="1" valign="top" align="left" xpos="48"> <hr size="15" width="384" color="9999cc" height="45"> <td width="21" height="32"></td> <td width="1" height="29"><spacer type="block" width="1" height="29"></td> <td width="48" height="29"></td> <td width="32" height="29"></td> <td width="65" height="29" colspan="6" rowspan="1" valign="top" align="left" xpos="80" content csheight="29">Message:
</td> <td width="143" height="29"></td> <td width="80" height="29"></td> <td width="176" height="29"></td> <td width="21" height="29"></td> <td width="1" height="243"><spacer type="block" width="1" height="243"></td> <td width="48" height="243"></td> <td width="32" height="243"></td> <td width="464" height="243" colspan="9" rowspan="1" valign="top" align="left" xpos="80"><textarea name="message" cols="40" rows="13" wrap="virtual"></textarea></td> <td width="21" height="243"></td> <td width="1" height="48"><spacer type="block" width="1" height="48"></td> <td width="48" height="48"></td> <td width="496" height="48" colspan="10" rowspan="1" valign="top" align="left" xpos="48"> <hr size="15" width="384" color="9999cc" height="45"> <td width="21" height="48"></td> <td width="1" height="157"><spacer type="block" width="1" height="157"></td> <td width="48" height="157"></td> <td width="32" height="157"></td> <td width="16" height="157"></td> <td width="16" height="157"></td> <td width="176" height="157" colspan="5" rowspan="1" valign="top" align="left" xpos="112"><input type="reset" value="Clear"></td> <td width="80" height="157" colspan="1" rowspan="1" valign="top" align="left" xpos="288"><input type="submit" value="Post" name="submitButtonName"></td> <td width="176" height="157"></td> <td width="21" height="157"></td> <td width="1" height="14"><spacer type="block" width="1" height="14"></td>
<td width="21" height="14" colspan="1" rowspan="1" valign="top" align="left" xpos="544">
[+] edit
Post został zmodyfikowany ze względu
na rozjechanie nim tej części forum.
---
~strife