Jump to content

Recommended Posts

Posted

hello mates today i will be teaching you how to make simple login system with php

ok lets start with login.php

 

code :

 

<?php

$username = $_POST['user'];
$password = $_POST['pass'];

if ($username == "Admin" && $password == "l33t")
{
header( 'Location: http://www.yoursite.com/Admin.html' ) ;
}
else
{
echo "wrong password or username";
}
?>

 

so now when you are going to login it will redirect you to a page in your site called admin.html or any other page you want all you have to do is change admin.html with the page name..

note :

the page must be uploaded in the same directory of the login.php file...

 

login.html code :

 

<html>
<head>
<title>Login Page!!</title>
</head>
<body>
<form action="login.php" method="POST">
Username: <input type="text" name="user"><br>
password: <input type="password" name="pass">
<input type="submit" value="Login">
</form>
</body>
</html>

 

now you can make any other page so when you login it will redirect you to i will just make simple one using codes from my previous html tutorials..

 

<html>
<head>
<title>admin page.</title>
<body>
</body>
</head>
</html>

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Good luck my friend! 😃
    • try this one instead. The one he shared affects every single NPC/player character in the game, the one I posted only affects player characters  https://drive.google.com/file/d/1UtccbD9e50x3WEnQBab2PTZnBHwpcGYM/view?usp=sharing or perhaps i misunderstood; if you could please post a full explanation of the problem you're having with the files, unfortunately i think whatever you're using to translate to english is a bit bad nevermind, i got what you mean, here's the fix   https://drive.google.com/file/d/1av7OHaGSdnVQtcBgb9MhtiIkxVXy3P2y/view?usp=sharing   CanIngnoreCollision=True CanBeIngnoredCollision=True  
    • <dailyReward days="28" autoOpen="true" minimumOnlineTimeSeconds="30" oneRewardPerIP="true" resetIfMissDay="true">   For now, I have these settings in the XML—this is the V1 version I created, though I plan to make further improvements over time. Of course, I’ll also add more protections—MAC, HWID, and perhaps others like account-based restrictions—to make it more secure. We can also implement non-tradable items to further enhance the system's security. I’ll keep posting updates and refining both the system and the interface. I might make a video tomorrow; if you look at the top, you'll see the "auto-open" feature can be toggled on or off, allowing users to rely solely on the `.daily` command. Cheers! Note: If I sell it in this state, I’ll provide support and roll out updates to users. I’m not forcing anyone to buy anything; I’d even provide the patch files so that anyone with the necessary skills can add features, modify it, or improve it further.
    • If the problem is that the target is lost, the action of aiming at another character, upon losing collision, does not allow aiming.   This one works as it should, allowing you to target characters
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..