例如,键可以是一个帐户编号。
考虑清单5中的表单,该表单将显示如何存储会话中的用户ID和帐户编号。
Consider the form in Listing 5, which shows how to store a user's id and account number in a session.
清单 4 显示了除使用静态列外,还可以向帐户编号字段添加简单验证例程以确保输入值不是非数字值。
Listing 4 shows an example of the power of adding a simple validation routine to the account number field to make sure it cannot be a non-number in addition to using static columns.
应用推荐