PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

一个用于网站用户管理的函数库原作者tim_perdue

原创
2016-06-13 10:24:41 672浏览

0) { $feedback .= ERROR - USER NAME EXISTS ; return false; } else { //create a new hash to insert into the db and the confirmation email $hash=md5($email.$hidden_hash_var); $sql="INSERT INTO user (user_name,real_name,password,email,remote_addr,confirm_hash,is_confirmed) ". "VALUES ($user_name,$real_name,". md5($password1) .",$email,$GLOBALS[REMOTE_ADDR],$hash,0)"; $result=db_query($sql); if (!$result) { $feedback .= ERROR - .db_error(); return false; } else { //send the confirm email user_send_confirm_email($email,$hash); $feedback .= Successfully Registered. You Should Have a Confirmation Email Waiting ; return true; } } }

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。