ÐÓÁÖͬѧ¼(Áù)

5年以前  |  阅读数:647 次  |  编程语言:PHP 

×¢²a²¿*Ö£º
×¢²a²½Öe1: class/register_step1.php

°a¼¶Í¨Ñ¶Â¼-×¢²aµÚÒ»²½ *µ»Ø"; exit; } echo "»Ø´ðÕýÈ*£¬½øÈeµÚ¶þ²½¡£"; exit; } ?>
×¢²aµÚÒ»²½-Éi*ÝÑeÖ¤

Çe»Ø´ðÒÔÏÂÎÊÌa

1.
ÄuµÄ»Ø´ð
2.
ÄuµÄ»Ø´ð



ʵÔÚÏe²»ÆðÀ´ÁË£¬ÎÊÎʹÜÀiÔ±°É¡£

×¢²a²½Öe2: class/register_step2.php 94¼¶1°aͨѶ¼-×¢²aµÚ¶þ²½ "."*µ»Ø"; exit; } $username=trim($username); $psw=trim($psw); $psw2=trim($psw2); $name=trim($name); $birth=$year.'-'.$month.'-'.$day; $work=trim($work); $ad=trim($ad); $post=trim($post); $ph=trim($ph); $bp=trim($bp); $email=trim($email); $oicq=trim($oicq); $account=strip_tags(trim($account));//È¥µoÊ×β¿Õ¸ñ¼°html±e¼Ç $signature=strip_tags(trim($signature)); //¼iÑe´ËÃu×ÖÊÇ*ñÒѱ»×¢²a $result = mysql_query("SELECT name FROM user where name='$name'",$db); if (mysql_num_rows($result)!=0){ echo "´ËÃu×ÖÒÑÓÐÈË×¢²a£¡"."ÖØÐÂÌiд "."Íu¼ÇÃÜÂe£¬Ïo¹ÜÀiÔ±Ë÷ÒªÃÜÂe"; exit; } //¼iÑeÓû§ÃuÊÇ*ñ±»Ê¹Óà $result = mysql_query("SELECT user FROM user where user='$username'",$db);//Èo*µ»ØÁеÄÊýÄ¿²»Îª0£¬ËµÃ÷´ËÓû§ÃuÒÑÓÐÈËʹÓà if (mysql_num_rows($result)!=0){ echo "´ËÓû§ÃuÒÑÓÐÈËʹÓã¡"."ÖØÐÂÌiд"; exit; } //¼i²eÃÜÂeÖظ´ÊÇ*ñÕýÈ* if (!$psw==$psw2){ echo "ÇeÈ*ÈÏÃÜÂe,*µ»Ø"; exit; } //¼i²eemailµÄºÏ*¨ÐÔ if(!ereg('^[-!#$%&'*+./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+.'.'[-!#$%&'*+\\./0-9=?A-Z^_`a-z{|}~]+$',$email)&&$email){ echo "email²»ºÏ*¨!
"."ÖØÌi
"; exit;} //дÈeÊý¾Ý¿a $sql="INSERT INTO user (user,psw,name,sex,birth,work,ad,post,ph,bp,email,oicq,account,signature,face) VALUES ('$username','$psw','$name','$sex','$birth','$work','$ad','$post','$ph','$bp','$email','$oicq','$account','$signature','$face')"; $result = mysql_query($sql,$db); mysql_close($db); //*¢×£ºØÓʼþ $subject="×£ºØÄa³É¹¦×¢²a".$sitename."£¡";//Ö÷Ìa $message=$name.",ÄaºÃ£º
×£ºØÄa³É¹¦×¢²aͬѧ¼£¡ÄuµÄÓû§ÃuΪ".$username.",ÃÜÂeΪ".$psw."
ÏÖÔڵǽ$sitename";//ÐżþÄÚÈÝ $headers .= "Content-Type: text/html; charset=gb2312n"; // Mime type mail($email,$subject,$message,$headers);//ÀeÏß״̬ϵ÷ÊÔʱ£¬ÕaÒ»¾a¿ÉÄÜ»a³o´i£¬²»±Ø¹ÜËu£¬´«µ½*þÎñÆ÷Éϼ´¿É¡£ echo "¹§Ï²Äu×¢²a³É¹¦£¡Ò»*a»¶Ó­ÐÅÒÑ*¢µ½ÄuµÄÓÊÏa£¬Çe×¢Òa²eÊÕ¡£","ÏÖÔڵǼ"; exit; } ?>
×¢²aµÚ¶þ²½-Ìiд¸oÈË×ÊÁÏ
×¢Òa²»ÒªÓпոñ,´ø*µÄÏiĿΪ±ØÌi¡£

Óû§Ãu£º *
(Ó¢ÎÄ×Öĸ»o¼ÓÊý×Ö£¬³¤¶È²»³¬¹ý12)
ÃÜÂe£º *
(Ó¢ÎÄ×Öĸ»o¼ÓÊý×Ö£¬³¤¶È²»³¬¹ý8¸o×Ö*u)
È*ÈÏÃÜÂe£º *
ÐÕÃu£º *
ÐÔ±ð£ºÄÐ Å®
ÉuÈÕ£º Äe Ô ÈÕ
¹¤×÷µ¥Î»£º
ͨѶµØÖ*£º *
Óʱa£º
µç»°£º *
´«ºo£º
Email£º *
oicq£º
¸oÈË˵Ã÷£º(ÔÚͨѶ¼ÀiÏÔʾ£¬²»³¬¹ý125¸oºº×Ö)

¸oÈËÇ(C)Ãu£º£¨ÔÚÁoÑÔ²¾µÄ×Ô¶¯Ç(C)Ãu£¬²»³¬¹ý125¸oºº×Ö£(C)

Ñ¡ÔñÒ»¸o×Ô¼ºÏ²»¶µÄÍ*Ïñ:





 相关文章:
PHP分页显示制作详细讲解
SSH 登录失败:Host key verification failed
获取IMSI
将二进制数据转为16进制以便显示
获取IMEI
文件下载
贪吃蛇
双位运算符
PHP自定义函数获取搜索引擎来源关键字的方法
Java生成UUID
发送邮件
年的日历图
提取后缀名
在Zeus Web Server中安装PHP语言支持
让你成为最历害的git提交人
Yii2汉字转拼音类的实例代码
再谈PHP中单双引号的区别详解
指定应用ID以获取对应的应用名称
Python 2与Python 3版本和编码的对比
php封装的page分页类完整实例