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.
Hallo12 schrieb:Wie macht man das dass man sich einloggen kann.
Also ohne ht....
Ich sehe auf vielen Homepages das man sich da einloggen kann also:
Name
Passwort
Einloggen
Wie macht man sowas ????
Das würde mich interessieren??
Mit javascript java php html oder wie???
<?php
$realpass="hauptsache-in-jedem-fall-falsch";
if ($username=="admin"){
$realpass="geh-heim";} //Passwort für den Admin
if ($username=="thorsten"){
$realpass="geheim";} //Passwort für den user
if ($username=="hans"){
$realpass="peter";} //Passwort für den user
if ($username=="sibille"){
$realpass="noch-ein-passwort";} //Passwort für den user
// ggf. und so weiter...
?>
<?php
if ($pass=="")
{
$log=logout;
}
if ($log=="logout" or $pass!=$realpass)
{ //if1 auf (nicht eingelogt)
echo "<form action=\"".$REQUEST_URI."\" method=\"post\">";
echo "Name: <input type=\"Text\" name=\"username\">";
echo "Passwort: <input type=\"Password\" name=\"pass\">";
echo "<input type=\"Submit\" name=\"log\" value=\"login\">";
} //if1 zu (nicht eingelogt)
if ($log=="login" && $pass==$realpass)
{
echo "<form action=\"".$REQUEST_URI."\" method=\"post\">";
echo "<input type=\"hidden\" name=\"username\" value=\"falscher-name\">";
echo "<input type=\"hidden\" name=\"pass\" value=\"falsches-passwort\">";
echo "<input type=\"Submit\" name=\"log\" value=\"logout\">";
echo "</form>";
}
?
<?php
include("pass.php");
include("passin.php");
?>
<input type="hidden" name="pass" value="<?php echo $pass ?>">
echo "<input type=\"hidden\" name=\"pass\" value=\"".$pass."\">";