Hallo,
Ich versuche eine css datei online zu bearbeiten, erstmal ohne admin und login funktion.
leider funktioniert es nicht ganz und eine passende lösung finde ich auch nicht, könnte mir jemand helfen ?
Wäre wirklich klasse.
<center>
<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post" name="mail"> // 1. + 2.
<?php
$inhalt = leseAusDatei( $datei );
if( trim($inhalt) == '' ) {
$inhalt = 0;
}
echo '<br />Inhalt der Textdatei:
<br /><br />
<textarea rows=30 cols=130>
' . $inhalt . '
</textarea>
<br /><br />';
schreibeInDatei( $datei, ++$inhalt );
?>
<input width="140" type="submit" name="send" value=" senden "> // 3
</form>
</center>
<?php
// ....
if(isset($_POST['send'])){
//Datei abspeichern <-- 4
}
?>
Liebe Grüße Michael
Ich versuche eine css datei online zu bearbeiten, erstmal ohne admin und login funktion.
leider funktioniert es nicht ganz und eine passende lösung finde ich auch nicht, könnte mir jemand helfen ?
Wäre wirklich klasse.
<center>
<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post" name="mail"> // 1. + 2.
<?php
$inhalt = leseAusDatei( $datei );
if( trim($inhalt) == '' ) {
$inhalt = 0;
}
echo '<br />Inhalt der Textdatei:
<br /><br />
<textarea rows=30 cols=130>
' . $inhalt . '
</textarea>
<br /><br />';
schreibeInDatei( $datei, ++$inhalt );
?>
<input width="140" type="submit" name="send" value=" senden "> // 3
</form>
</center>
<?php
// ....
if(isset($_POST['send'])){
//Datei abspeichern <-- 4
}
?>
Liebe Grüße Michael
Comment