I have here four files:
config.php
login.php
page1.php
page2.php
config.php
login.php, page1.php and page2.php are including the config.php to use $user and $pass
and in these three files is also this script:
when you type wrong username or password then this form is shown, when you type user and pass right then not
the $user and $pass should both be encoded with md5() and links should be than like this:
page1.php?logi=14c4b06b824ec593239362517f538b29&logi1=5f4dcc3b5aa765d61d8327deb882cf99
and then are all links like that
how it works, that this username and password stay there?
no sql, no cookies, no sessions
only a simple login script like this between pages
hope you can help me
config.php
login.php
page1.php
page2.php
config.php
PHP:
<?php
$user = "username";
$pass = "password";
?>
and in these three files is also this script:
PHP:
<form action="login.php" method="post">
Username<br>
<input type="text" name="logi"><br>
Password<br>
<input type="password" name="logi1"><br>
<input type="submit" name="ok" value="Login">
</form>
the $user and $pass should both be encoded with md5() and links should be than like this:
page1.php?logi=14c4b06b824ec593239362517f538b29&logi1=5f4dcc3b5aa765d61d8327deb882cf99
and then are all links like that
how it works, that this username and password stay there?
no sql, no cookies, no sessions
only a simple login script like this between pages
hope you can help me
