BlackBoard (http://www.black-board.net/index.php)
- Design, Programmierung & Entwicklung (http://www.black-board.net/board.php?boardid=55)
-- Webdesign (http://www.black-board.net/board.php?boardid=19)
--- Speicher Script (http://www.black-board.net/thread.php?threadid=2328)


Geschrieben von [TH] am 22.12.2001 um 19:59:

  Speicher Script

Suche n Script dass eingaben z.B. von einem Formular in einer datei speichert!
Is sehr wichtig!!



Geschrieben von -=MaStEr=-FREAKOUT am 12.01.2002 um 22:53:

 

hab hier etwas vielleicht hilft dir das ja weiter ...

show.php
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
<? 

include ("eintrag.html"); 

echo "< br >< br >"; 

include ("comments.txt"); 

?> 


eintrag.html
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
<form method=post action=eintrag.php?send=true> 

<input type=text value=name name=name> 

<input type=text value=comment name=com> 

<input type=submit value=Senden> 

</form>


eintrag.php
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
<? 

if ($send) { 

    $fp = fopen ("comments.txt", "a+"); 

    $comment = "$name schrieb: $com <*br>"; 

if(fputs ($fp, $comment )) { 

    fclose ($fp); 

    echo "erfolg !"; 

    echo "<a href=show.php>Zeigen</a>"; 

} 

} 

?> 


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH