Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Datei

Empfohlene Antworten

Veröffentlicht

Moin,

folgendes: Ich habe ein Formular das wenn man auf einen Button drückt die Daten in eine Datei schriebt! Main Porb ist, dass wenn man Zeilenumbrüche macht die er ja logischerweise auchin die datei mit schreibt ich habe jetzt schon einiges ausprobiert z.b. kann man bei den Textfeldern ja "wrap auf virtual setzen und bei PHP gibt es ja die schöne Funktion ltrim hab ich auch schon probiert weiss aber nicht ob an der richtigen stelle hier mal noch der quellcode:

<textarea rows=10 cols=50 wrap="virtual" name="eintrag"></textarea><br><br>

<input type="submit" value="Eintragen" name="submit">

</form>

<?php

$date=date("d.m.y | H:i ");

$gbdaten= $name."||". $email."||". $hp."||".$eintrag."||".$date."\n";

if (empty($name)) {

}

else {

$gbdatei="gbeintrag.txt";

$od=fopen($gbdatei,"a+");

fwrite($od, ltrim($gbdaten));

fclose($od);

}

?>

also helft mir bitte

Du kannst auch einfach in dem String alle \n loeschen.

str_replace("\n","",$eingabe);

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.