使用经典 ASP 仅更新 MS SQL 中的一个字段
我一直在为这个脚本而苦恼,需要帮助。我正在尝试创建一个连接到以下 sql 字段的注册表单:Acct_ID
、用户名
、密码
、FirstName
>、姓氏
、确认
、注册日期
和AccountNum
。
到目前为止,我所能做的是将表单插入到数据库中,并将 cdosys 电子邮件发送到电子邮件地址(用户名),并将查询字符串附加到嵌入在电子邮件中的链接中。查询字符串是注册表单中的 AccountNum
字段。
我想要尝试做的是仅在用户单击如下所示的链接时更新数据库中的确认字段: http://www.domainname.com/Presenter_Account_Confirm_Registration.asp?AccountNum=2152012319101300766363428210152260。
我验证了帐号已转移到确认页面,但我对如何仅更新数据库中的确认字段感到困惑。任何帮助将不胜感激。谢谢你!
I have been banging my head with this script and need to assistance. I am trying to create a registration form that connects to the following sql fields: Acct_ID
, Username
, Password
, FirstName
, LastName
, Confirmation
, RegistrationDate
and AccountNum
.
What I have been able to do so far is get the form inserted into the database and have a cdosys email sent out to the email address(username) with a querystring attached to a link embedded in the email. The querystring is the AccountNum
field from the registration form.
What I want to try to do is update the confirmation field only in the database when the user clicks on the link which looks like this:
http://www.domainname.com/Presenter_Account_Confirm_Registration.asp?AccountNum=2152012319101300766363428210152260.
I verified that the Account Number is transferred to the confirmation page, but I am stumped as to how to update just the confirmation field in the database. Any help would be greatly appreciated. Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此处做出一些假设,
Acct_ID
是INT
,与AccountNum
相同,并且您要设置Confirmation 到 <代码>1:
Making some assumptions here, that
Acct_ID
is anINT
, is the same asAccountNum
, and that you want to setConfirmation
to1
: