您是否在 Web 应用程序中将名字和姓氏设置为必填字段?

发布于 2024-10-10 09:52:16 字数 158 浏览 0 评论 0原文

我想知道我是否应该将其设为强制或可选。我更有可能在不需要这些信息的情况下注册网站,并且大多数网站不需要全名(甚至是名字)。这样做的好处是在用户登录后为他们定制网站,当然也可以定制个性化电子邮件。

共识是什么?需要他们吗?让它们成为可选的,并冒着在我的账户表中出现大量 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

枫以 2024-10-17 09:52:16

我们使用“全名”,因为人们的名字可能有不同的文化结构。

例如:“杀手”马克·冯·海克博士

We use "Full Name" since people may have different cultural structures to their name.

eg: Dr Mark 'The Killer' Von Haiek

恋竹姑娘 2024-10-17 09:52:16

这实际上取决于您的业务需求。除非需要个人电子邮件(或电话或其他任何东西 - 例如金融交易等),否则仍然没有真正需要存储信息。

经验法则:我通常只会存储您必须存储的内容 - 或者更好地使用 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.

霊感 2024-10-17 09:52:16

这取决于您的需求。

实际上,您可以让用户选择一个选项来显示或不显示他们的姓氏。

但是,您只需要要求用户满足您实际需要的内容即可。如果您不知道他们的名字,那么您可能不会要求他们这样做。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文