获取注册时的手机号

2016-07-07 15:01 来源:www.chinab4c.com 作者:ecshop专家

我想在UC里添加一个手机字段
function onregister() {
$this->init_input();
$username = $this->input('username');
$password =$this->input('password');
$email = $this->input('email');
$phone = $this->input('extend_field5');
$questionid = $this->input('questionid');
$answer = $this->input('answer');
$regip = $this->input('regip');

if(($status = $this->_check_username($username)) < 0) {
return $status;
}
if(($status = $this->_check_email($email)) < 0) {
return $status;
}
$uid = $_ENV['user']->add_user($username, $password, $email, $phone, 0, $questionid, $answer, $regip);
return $uid;
}
请教下手机那块该怎么写?