HTML-Code:
<form action=" <? $PHP_SELF; ?>" method ="post">
<textarea name="inhalt" rows=20 cols=80 wrap="virtual">
PHP-Code:
<?php include("test.txt"); ?>
HTML-Code:
</textarea>
<input name="submit" type="submit" id="submit" value="Abschicken">
<input type="reset" name="Submit2" value="Reset">
PHP-Code:
<?php if ($submit == "Abschicken")
{
$fp = fopen("../klongb.css","w");
$data ="$inhalt";
$data = str_replace("\r","",$data);
fputs($fp,$data);
fclose($fp);
$check_ok = "<font color = 'red'>Ihre Datei wurde erfolgreich geändert!</font>";
echo "$check_ok";
}
?>