Simple online CSV Data Editor in fontend
-
Hi,
I would be happy if you are logged in to the frontend, that you can see a link under the table with which you can easily edit the CSV file.
I have realized this with the following PHP script. (only example)
<?php $file = "test.csv"; echo "Editor (dieser Menüpunkt wird nur angezeigt wenn man im Backend angemeldet ist)"; //* SPEICHERN if ($_POST["auswahl"] == "Speichern") { file_put_contents($file, stripslashes( $_POST['editor'] ) ); echo "Gespeichert !";} //* INHALT AUS DATEI EINLESEN$ content = stripslashes( file_get_contents($file) ); ?> //* Formular anzeigen <form action="/konfiguration" method="post"> <p><textarea name="editor" rows="20" cols="120"> <?php echo htmlspecialchars($content); ?></textarea></p> <p><input type="submit" name="auswahl" value="Speichern" /> <input type="submit" name="" value="Abbrechen" /></p></form>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Simple online CSV Data Editor in fontend’ is closed to new replies.