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.

Empfohlene Antworten

Veröffentlicht

Hi Leute,

ich will per WEBiface Daten in eine DB eintragen.

Dazu hab ich folgendes Skript

db_eingabe.htm

<html>
<head>
<title>Dateneingabe</title>
</head>
<body>
<form action="work.php" method=post>
Überschrift <br>
<input type=text name="Array[Titel]" size= 50>
<br>
<br>
Artikel<br><textarea name="Array[News]" row=5 cols=40></textarea>
<br>
<br>
<input type=submit name="SUBMIT" value="ok">
</form>
</body>
</html>[/PHP]

&

Work.php

[PHP]<html>
<head>
<title>Daten verarbeiten</title>
</head>
<body>

<?php

include "sqlconnect.php";
$dbverbindung = mysql_connect ($host, $user, $password);
$dbanfrage = "INSERT into $tabelle (Titel, News) values ('$Array[Titel]', '$Array[News]')";

if (mysql_db_query ($dbname, $dbanfrage, $dbverbindung)) {
print ("Datenbankeintrag erfolgreich.");
} else {
print ("Es traten Probleme auf.");
}
mysql_close ($dbverbindung);

?>

</body>
</html>

Es wird auch ein Eintrag erzeugt, nur ist dieser Leer. Der innhalt den ich eingeben habe wird nicht übernommen.

Kann mit jemand Helfen?

MfG

radiohead1

und vielleicht noch über die themen "richtige parameterprüfung" und "SQL-injection", denn sonst wirst du an deinen skripten auf kurz oder lang keinen spass mehr haben.

zu der ganzen sicherheitsthematik liefert z.b. das buch "php-sicherheit" (ISBN: 978-3-89864-535-5) sehr gute informationen.

Bearbeitet von el_pollo_diablo

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.