您是否在 Web 应用程序中将名字和姓氏设置为必填字段?
我想知道我是否应该将其设为强制或可选。我更有可能在不需要这些信息的情况下注册网站,并且大多数网站不需要全名(甚至是名字)。这样做的好处是在用户登录后为他们定制网站,当然也可以定制个性化电子邮件。
共识是什么?需要他们吗?让它们成为可选的,并冒着在我的账户表中出现大量 NULL 的风险?
I was wondering if I should make mine mandatory or optional. I'd be more likely to register for a site without having them required, and most sites don't require a full name (or even a first name). The benefit would be to customize the site for the user once they logged in and of course for personalized emails as well.
What's the consensus? Require them? Make them optional and risk having a ton of NULLS in my accounts table?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我们使用“全名”,因为人们的名字可能有不同的文化结构。
例如:“杀手”马克·冯·海克博士
We use "Full Name" since people may have different cultural structures to their name.
eg: Dr Mark 'The Killer' Von Haiek
这实际上取决于您的业务需求。除非需要个人电子邮件(或电话或其他任何东西 - 例如金融交易等),否则仍然没有真正需要存储信息。
经验法则:我通常只会存储您必须存储的内容 - 或者更好地使用 OpenID 之类的东西。
希望有帮助。
This really depends on your business requirements. Unless there is a requirement for a personal email (or phone or whatever - for example for financial transactions etc.) then there still is no real need for storing the info.
Rule of thumb: I would generally only store what you have to store - or even better use something like OpenID.
Hope that helps.
这取决于您的需求。
实际上,您可以让用户选择一个选项来显示或不显示他们的姓氏。
但是,您只需要要求用户满足您实际需要的内容即可。如果您不知道他们的名字,那么您可能不会要求他们这样做。
It depends on your needs.
You can actually make the user select an option to display their last name or not.
But, you would only need to require the users on what you actually need. If you don't their names, then you may not ask them to do so.