如何删除登录页面中文本框中的某些字段 [英] how to remove some field in the text box in the login page

查看:107
本文介绍了如何删除登录页面中文本框中的某些字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的程序员工ID中显示为emp0000001,emp0000002.但在数据库中它存储如1,2,3 ...

在我的登录验证页面中使用员工ID文本框。我需要输入员工ID,如emp0000001。但在数据库中,员工iD是'1'。我想从文本框中删除emp000000。

然后我如何纠正我的登录问题。

in my program employee ID is displyed like emp0000001,emp0000002.but in database it is stored like 1,2,3...
in my login authentication page uses employee Id text box.here i need to type employee ID like emp0000001.but in data base the employee iD is ''1''.i want to remove emp000000 from the text box.
then how can i rectify my login problm.

推荐答案

你应该重新设计用户界面并重新思考你的方法。如果你强迫用户键入这样的乱码,你会滥用他们的耐心。问题是人为的。谁告诉你应该直接根据UI数据创建查询?这根本不安全。你想明白为什么吗?请看这里:

http://xkcd.com/327/ [ ^ ]。



参见:

在com.ExecuteNonQuery()中更新EROR; [ ^ ]。



-SA
You should re-desing the UI and re-think you approaches. If you force the users to type such gibberish, you abuse people patience. And the problem is artificial. Who told you that you should create a query directly based on UI data? This is simply unsafe. Do you want to understand why? Look here:
http://xkcd.com/327/[^].

See also:
EROR IN UPATE in com.ExecuteNonQuery();[^].

—SA


这篇关于如何删除登录页面中文本框中的某些字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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