最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php 用户注册页面代码
时间:2022-11-14 23:01:28 编辑:袖梨 来源:一聚教程网
| 代码如下 | 复制代码 |
|
$conn=mysql_connect('localhost','root','root')or die('数据库连接错误'); if($_post[username]){ $sql="select * from users where username='$_post[username]'"; $res=mysql_query($sql)or die("查询失败!"); var username = document.regform.username.value; if(username==""){ var name = document.getelementbyid('username'); //获取用户名文本框 if(xmlhttp.readystate == 4 && xmlhttp.status == 200){ span.style.color = '#cb2121'; //设置span标记颜色为红色 span.style.color = '#00a800';//设置颜色为绿色 xmlhttp.send(null); //发送请求 |
|
/*
drop table if exists `users`;
create table `users` (
`id` int(10) not null auto_increment,
`username` varchar(50) not null,
`password` varchar(50) not null,
`sex` int(1) not null default '0',
`age` int(10) not null,
`qq` int(15) default null,
`phone` varchar(50) default null,
`email` varchar(50) default null,
`address` varchar(100) default null,
primary key (`id`)
) engine=innodb auto_increment=4 default charset=gbk;
-- ----------------------------
-- records of users
-- ----------------------------
insert into `users` values ('1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '0', '22', '379559090', '666666', '[email protected]', '武汉');
insert into `users` values ('2', 'root', '63a9f0ea7bb98050796b649e85481845', '0', '20', '1244249796', '8888888', '[email protected]', '中国');
insert into `users` values ('3', 'www.111com.net', '96e79218965eb72c92a549dd5a330112', '0', '20', '1244249796', '8888888', '[email protected]', '中国');
本教程下载地址
http://down.1*1**1com.net/down/code/php/xinwenxitong/2010/0812/20183.html
相关文章
- 漫蛙manwa2-官网最新入口 03-07
- dpck人工智能官网-权威入口 03-07
- 不背单词官网网页版-不背单词网页版快捷登录 03-07
- 一耽漫画最新版本下载入口-一耽漫画正版安装包下载入口 03-07
- twitter官网入口-twitter网页版登录 03-07
- 良心云游戏网页版最新登录地址一键获取-良心云游app手机版正版极速下载 03-07