I'm trying to make a password only login in php, because I have a "pocket server" wich always changes domains (I use ngrok so I don't have to portforward), And I need a domain tracer so my users always know the link to my pocket server, I already have a website and I want to make it so I don't have to make a complicated login system, I want to identify myself just by a password and nothing else, the website is simple it has a textbox and some text
Goals:
-Have a simple password login
-And If I am logged in, i can change the domain displayed on the public website
My code so far:
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Killer Doge</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Killer Doge Tracer (Link changes daily)</h1>
<?php
$text = "domain";
?>
<p>Current domain:</p>
<?php
echo $text;
?>
<br>
<?php echo '<input type="text" name="name1" value="'.$admin.'">';
If ($admin == "694205") {
echo yees;
}
?>
</body>
</html>