无论如何我可以保存输入文本值吗?

问题描述:

我想在我的网站上保存所有用户名。

无论如何它可以保存在txt文件中吗?



b $ b

糟糕的英语mb



我尝试了什么:



搜索了很多论坛但却找不到任何有用的东西。

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.

不是HTML,不 - 你不要无法访问用户文件系统。



您可以在javascript中执行此操作:JavaScript Cookies [ ^ ] - 但是大多数系统将它存储在服务器端,而不是客户端,这意味着在C#,VB,Python或PHP中进行。如果您正在服务器端,那么不要使用文本文件,使用数据库 - 文本文件本质上不是多用户(网站是这样的),因此数据库是更好的选择。
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.


使用mysql并使用它将保存每个用户名
use mysql and by using this every usernames will be saved