无论如何我可以保存输入文本值吗? [英] Is there anyway I can save the input text value?

查看:81
本文介绍了无论如何我可以保存输入文本值吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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



< br $> 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


这篇关于无论如何我可以保存输入文本值吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆