Home > php教程 > php手册 > php注册页面代码(mysql+php)

php注册页面代码(mysql+php)

WBOY
Release: 2016-06-13 09:57:45
Original
2767 people have browsed it

php注册页面代码(mysql+php) 这是一款利用mysql php实例的用户注册代码,比较简单,就是把html 提交过来的数据保存到mysql数据库。

php教程注册页面代码(mysql教程+php)
这是一款利用mysql php实例的用户注册代码,比较简单,就是把html
提交过来的数据保存到mysql数据库教程。
*/
 include('global.php');

 if($_post['sub']){
  $user  = $_post['username'];
  $pwd   = md5($_post['password1'].$user);
  $email = $_post['email'];
   $q = $mysql->query("insert into `hl`.`hl_member`(`id`,`username`,`password`,`email`)values (null,'$user','$pwd','$email');");
  if($q){
   setcookie('login',$user);
   $prompt_msg->p('恭喜您,亲爱的会员,您已经注册成功!','index.php','现在去首页。','http://www.bKjia.c0m','先去论坛逛逛!');
  }else{
   $prompt_msg->p('非常抱歉,系统发生故障!');
  }
 }
?>






Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template