发送邮件
1、 mail函数
发送电子邮件:
1)、进行js验证有效性(正则表达式)
2)、接收到的表单上传数据
3)、进行过滤
4)、数组-------
$key->$value
Extract();
5)、写入表格
激活验证码注册信息
1、 数据表
2、 Username //注册的用户名
3、 Password//注册的用户口令
4、 Status //激活状态 默认为0
5、 Md5name //加密后的用户名
6、 获取信息—存储到数据表中
http://localhost/usermanage/do_reg.php?name=加密后的用户名
do_reg.php
//$_GET[‘name’]
更新记录
//login.php
If(用户名==用户名){
If(口令==口令){
If(状态==1){
Header(location:index.php);
}
Mail(“{$_post
}”)
2、 sockes类
mail.class.php