hidra Posted November 23, 2008 Share Posted November 23, 2008 HelpPp I want to do the following: track a users text inputted into login and password and the info goes to logs.txt, I think i have to use variables for the users inpiut. Please let me have the code just to paste. : <label for="AccountName"> Username:</label> <input class="textField" type="text" name="AccountName" id=AccountName" /><br /> <label for="Password">Password:</label> <input class="textField" type="password" name="Password" id="Password" autocomplete="off" /><br /> Thank you. Quote Link to comment Share on other sites More sharing options...
trampolinejoe Posted November 23, 2008 Share Posted November 23, 2008 You should try abit harder then that, this isnt just a copy and paste forum for people to just code freely for you. You need to create your file: $fileName = "logs.txt"; $fh = fopen($fileName, 'w'); then you would need to do something like writing $username = $_POST["accoutname"]; fwrite($fh, $username); also, if you are dealing with passwords i suggest looking into md5() before you write to your log with the password. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.