Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">
/* ... hier sind dateispezifische Formate erlaubt ... */
</style>
<title>Rauche Frei </title>
</head>
<body>
<div id="topbar">
<center>
<img src="/top2.gif" >
</img>
</center>
</div>
<div id="blue">
<H2>Freies Rauchen und Freies Nichtrauchen </H2>
<?php;
$username= "$_POST[username]";
$userpass= "$_POST[userpass]";
$usermail= "$_POST[usermail]";
echo $username;
echo $userpass;
echo $usermail;
echo "<p>";
?>
<form method="post" action="user4.php">
<label>Benutzername:</label><BR><input name="username" type="text"><p>
<label>Passwort: </label><BR><input name="userpass" type="password" <?php;//id="userpass"><p>
?>
<label>E-Mail: </label><BR><input name="usermail" type="text"><p>
<input name="Eintragen" type="submit" id="login" value="Einloggen">
<p>
<?php;
$userpass = md5($_POST['userpass']);
print_r ($_POST);
echo $_POST[username];
$con= mysql_connect('localhost','web176-akip','eT92') or die(mysql_error());
mysql_select_db('web176-an',$con) or die(mysql_error());
$sql = "INSERT INTO users
(username, userpass, UserSession, usermail)
VALUES
('". $_POST['username'] ."','". $userpass ."',NULL,'". $_POST['usermail'] ."')";
//,'$_POST[null]' ,'$_POST[userpass]','$_SESSION[ID]','$_POST[usermail]' 'int(11)' (UserName, UserPass, UserMail)
mysql_query($sql) OR die(mysql_error());
echo $_POST[username];
mysql_close($con);
?>
</div>
<div id="left1">
<H2>
<?php;
include "links.php";
?>
</H2>
</div>
<?php;
//include 'sessionhelpers.inc.php';
//if (logged_in())
//include "userdata.php";
?>
<div id="down">
<?php;
include "down.php";
?>
</div>
</body>
</html>
$username= "$_POST[username]";
if ($_POST == TRUE)
{$sql = "INSERT INTO users
(username, userpass, UserSession, usermail)
VALUES
('". $_POST['username'] ."','". $userpass ."',NULL,'". $_POST['usermail'] ."')"};
if(isset($_POST['button']))
{
$userpass = md5($_POST['userpass']);
print_r ($_POST);
echo $_POST[username];
$con= mysql_connect('localhost','web176-akip','eT92') or die(mysql_error());
mysql_select_db('web176-an',$con) or die(mysql_error());
$sql = "INSERT INTO users
(username, userpass, UserSession, usermail)
VALUES
('". $_POST['username'] ."','". $userpass ."',NULL,'". $_POST['usermail'] ."')";
//,'$_POST[null]' ,'$_POST[userpass]','$_SESSION[ID]','$_POST[usermail]' 'int(11)' (UserName, UserPass, UserMail)
mysql_query($sql) OR die(mysql_error());
echo $_POST[username];
mysql_close($con);
}