DBM的同学录程序_php基础_脚本之家

8、注册文件reg.php3 require(“common.php3″State of Qatar; require(“mail.php3″卡塔尔(قطر‎; if{
iferror(“请填入您的注册客户名!”卡塔尔(قطر‎;
elseif(!eregi(“^[0-9a-zA_金沙8331网址,Z]+$”,$idState of Qatar卡塔尔(قطر‎error(“你的客商名无法含有别的字符!”State of Qatar;
elseif($password==””State of Qatarerror;
elseif($password<>$password1State of Qatarerror(“您的密码填写不科学!”State of Qatar;
elseiferror; elseiferror(“请填入您的邮件地址!”卡塔尔; else{
$dbm=dbmopen(“class”,”w”卡塔尔国; iferror(“那么些顾客名早已给别人注册了!”卡塔尔;
else{ $intro=nl2br;
$data=”$name|!:!|$nickname|!:!|$mail|!:!|$home|!:!|$oicq|!:!|$icq|!:!|$add|!:!|$tel|!:!|$birth|!:!|$job|!:!|$intro|!:!|$sex”;
dbminsert; $pwd=dbmopen(“password”,”w”卡塔尔(قطر‎; dbminsert; } dbmclose;
$sendmsg=”应接注册《尼科西亚中学2002届高级中学班同学录》n”;
$sendmsg.=”上面是您的注册消息:n”;
$sendmsg.=”客户名:$idn客户密码;$passwordn”;
$sendmsg.=”=====================================================”;
$sendmsg.=”注册姓名:$namen注册外号:$nicknamen注册邮箱:$mailn主页地址:$homen”;
$sendmsg.=”您的OICQ:$oicqn您的
ICQ:$icqn联系地址:$addn联系电话:$teln”;
$sendmsg.=”您的出生之日:$birthn您的工作:$jobn您的性别;$sexn您的个人介绍:n$intronn”;
$sendmsg.=”======================================================”;
$sendmsg.=”款待注册《尼科西亚中学二〇〇〇届高级中学班同学录》”;
$sendmsg.=”登录地点:”;
mail2(“迎接注册《尼科西亚中学2004届高级中学班同学录》”,$sendmsg,$mail卡塔尔;
header(“Location:index.php3″卡塔尔国; } }else{ ?>quot;-//W3C//DTD HTML 4.0
Transitional//EN”>

校友录客商注册

} ?> 9、建构数据库的公文run.php3 $dbm=dbmopen(“class”,”c”State of Qatar; dbmclose;
$dbm=dbmopen(“password”,”c”State of Qatar; dbmclose; ?>

发表评论

电子邮件地址不会被公开。 必填项已用*标注