Click here to Skip to main content
16,022,418 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to save all usernames on my website.
Is there anyway it could get saved in a txt file?



bad english mb

What I have tried:

Searched truh a lot of forums but didnt find anything working yet.
Posted
Updated 2-Jul-18 5:41am

Not in HTML, no - you don't have access to the user file system.

You could probably do it in javascript: JavaScript Cookies[^] - but most systems store it at the Server end, not the Client, and that means doing it in C#, VB, Python, or PHP. And if you are doing it server side then don;t use a text file, use a database - textfiles are not intrinsically multiuser (which websites are) so databases are a much better choice.
 
Share this answer
 
use mysql and by using this every usernames will be saved
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900