这是我的登录功能代码:
for($i=0;$i<count($this->form['customer_info']);$i++)
{
if($value['customer_id']==$this->form['customer_info'][$i]['customer_id'] && $value['customer_pw']==$this->form['customer_info'][$i]['customer_password'])
{
//my code
}
else
{
//my code
}
}
这是里面的值:$this->form['customer_info']:
Array
(
[0] => Array
(
[customer_id] => 1
[customer_company] => 123
[customer_email] => 123@123.com
[billing_address] =>
[contact_info] =>
[customer_password] => k41Y6fgW
)
[1] => Array
(
[customer_id] => 2
[customer_company] => abc
[customer_email] => abc@abc.com
[billing_address] =>
[contact_info] =>
[customer_password] => XwhcCWdx
)
[2] => Array
(
[customer_id] => 3
[customer_company] => 345
[customer_email] => 345@345.com
[billing_address] =>
[contact_info] =>
[customer_password] => gaKp3b5K
)
)
只有第一个数组[0]的信息能够被验证,其余的都不是..我真的不知道..请帮助我......非常感谢!