Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<form method="post" action="verarbeitungsdatei.php">
<textarea name="content" style="width:100%">
</textarea>
</form>
<?php
$textfeldinhalt = $_POST['content'];
/* ... weitere Verarbeitung ... */
?>
...
<form method="post" action="senden.php" name="formular">
<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">
</textarea>
<input type="submit" name="senden" value="senden" />
<input type="reset" name="reset" value="Reset" />
</form>
...
...
echo(stripslashes($_POST['elm1']));
$sql="INSERT INTO test ('id', `elm1`) VALUES (NULL, '$_POST[elm1]')";
echo $sql;
$result = mysql_query ($sql);
...
$elm1 = stripslashes($_POST['elm1']);
echo $elm1;
$sql="INSERT INTO test ('id', `elm1`) VALUES (NULL, '{$elm1}')";
echo $sql;
$result = mysql_query ($sql) or die(mysql_error());
Etwas mehr Inhalt aus der senden.php wäre gut.
<?php
ob_start();
session_start ();
if (!isset ($_SESSION["user_id"]))
{
header ("Location: index.php");
}
// echo "Wert : " . $_POST;
$connectionid = mysql_connect ("localhost", "****", "****");
if (!mysql_select_db ("LoginSystem", $connectionid))
{
die ("Keine Verbindung zur Datenbank");
}
$elm1 = stripslashes($_POST['elm1']);
echo $elm1;
$sql="INSERT INTO test ('id', `elm1`) VALUES (NULL, '{$elm1}')";
echo $sql;
$result = mysql_query ($sql) or die(mysql_error());
header("Location: index.php");
ob_end();
?>
$sql="INSERT INTO test (`id`, `elm1`) VALUES (NULL, '{$elm1}')";
if (get_magic_quotes_gpc()) {
$_POST['elm1'] = stripslashes($_POST['elm1']);
}
$elm1 = stripslashes($_POST['elm1']);
echo $elm1;
$sql="INSERT INTO test (id, elm1) VALUES (NULL, '{$elm1}')";
echo $sql;
$result = mysql_query ($sql) or die(mysql_error());
header("Location: index.php");
ob_end();
exit();
?>