PHP+DBM的同學(xué)錄程序(4)
Jun 21, 2016 am 09:15 AM程序
8、注冊文件reg.php3
require("common.php3");
require("mail.php3");
if($submit){
if($id=="")error("請?zhí)顚懩淖杂脩裘?);
elseif(!eregi("^[0-9a-zA_Z]+$",$id))error("你的用戶名不能含有其他字符!");
elseif($password=="")error("請?zhí)顚懩拿艽a!");
elseif($password$password1)error("您的密碼填寫不正確!");
elseif($name=="")error("請?zhí)顚懩拿郑?);
elseif($mail=="")error("請?zhí)顚懩泥]件地址!");
else{
$dbm=dbmopen("class","w");
if(dbmexists($dbm,$id))error("這個用戶名已經(jīng)給別人注冊了!");
else{
$intro=nl2br($intro);
$data="$name|!:!|$nickname|!:!|$mail|!:!|$home|!:!|$oicq|!:!|$icq|!:!|$add|!:!|$tel|!:!|$birth|!:!|$job|!:!|$intro|!:!|$sex";
dbminsert($dbm,$id,$data);
$pwd=dbmopen("password","w");
dbminsert($pwd,$id,$password);
}
dbmclose($dbm);
$sendmsg="歡迎注冊《深圳中學(xué)2000屆高中(12)班同學(xué)錄》n";
$sendmsg.="下面是您的注冊信息:n";
$sendmsg.="用戶名:$idn用戶密碼;$passwordn";
$sendmsg.="=====================================================";
$sendmsg.="注冊姓名:$namen注冊昵稱:$nicknamen注冊郵箱:$mailn主頁地址:$homen";
$sendmsg.="您的OICQ:$oicqn您的 ICQ:$icqn聯(lián)系地址:$addn聯(lián)系電話:$teln";
$sendmsg.="您的生日:$birthn您的職業(yè):$jobn您的性別;$sexn您的個人介紹:n$intronn";
$sendmsg.="======================================================";
$sendmsg.="歡迎注冊《深圳中學(xué)2000屆高中(12)班同學(xué)錄》";
$sendmsg.="登陸地址:http://5212.net/class/";
mail2("歡迎注冊《深圳中學(xué)2000屆高中(12)班同學(xué)錄》",$sendmsg,$mail);
header("Location:index.php3");
}
}else{
?>
|

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Many users will choose the Huawei brand when choosing smart watches. Among them, Huawei GT3pro and GT4 are very popular choices. Many users are curious about the difference between Huawei GT3pro and GT4. Let’s introduce the two to you. . What are the differences between Huawei GT3pro and GT4? 1. Appearance GT4: 46mm and 41mm, the material is glass mirror + stainless steel body + high-resolution fiber back shell. GT3pro: 46.6mm and 42.9mm, the material is sapphire glass + titanium body/ceramic body + ceramic back shell 2. Healthy GT4: Using the latest Huawei Truseen5.5+ algorithm, the results will be more accurate. GT3pro: Added ECG electrocardiogram and blood vessel and safety

Why Snipping Tool Not Working on Windows 11 Understanding the root cause of the problem can help find the right solution. Here are the top reasons why the Snipping Tool might not be working properly: Focus Assistant is On: This prevents the Snipping Tool from opening. Corrupted application: If the snipping tool crashes on launch, it might be corrupted. Outdated graphics drivers: Incompatible drivers may interfere with the snipping tool. Interference from other applications: Other running applications may conflict with the Snipping Tool. Certificate has expired: An error during the upgrade process may cause this issu simple solution. These are suitable for most users and do not require any special technical knowledge. 1. Update Windows and Microsoft Store apps

Part 1: Initial Troubleshooting Steps Checking Apple’s System Status: Before delving into complex solutions, let’s start with the basics. The problem may not lie with your device; Apple's servers may be down. Visit Apple's System Status page to see if the AppStore is working properly. If there's a problem, all you can do is wait for Apple to fix it. Check your internet connection: Make sure you have a stable internet connection as the "Unable to connect to AppStore" issue can sometimes be attributed to a poor connection. Try switching between Wi-Fi and mobile data or resetting network settings (General > Reset > Reset Network Settings > Settings). Update your iOS version:

php提交表單通過后,彈出的對話框怎樣在當(dāng)前頁彈出php提交表單通過后,彈出的對話框怎樣在當(dāng)前頁彈出而不是在空白頁彈出?想實現(xiàn)這樣的效果:而不是空白頁彈出:------解決方案--------------------如果你的驗證用PHP在后端,那么就用Ajax;僅供參考:HTML code

Watch4pro and gt each have different features and applicable scenarios. If you focus on comprehensive functions, high performance and stylish appearance, and are willing to bear a higher price, then Watch 4 Pro may be more suitable. If you don’t have high functional requirements and pay more attention to battery life and reasonable price, then the GT series may be more suitable. The final choice should be decided based on personal needs, budget and preferences. It is recommended to carefully consider your own needs before purchasing and refer to the reviews and comparisons of various products to make a more informed choice.

How to Optimize iPad Battery Life with iPadOS 17.4 Extending battery life is key to the mobile device experience, and the iPad is a good example. If you feel like your iPad's battery is draining too quickly, don't worry, there are a number of tricks and tweaks in iPadOS 17.4 that can significantly extend the run time of your device. The goal of this in-depth guide is not just to provide information, but to change the way you use your iPad, enhance your overall battery management, and ensure you can rely on your device for longer without having to charge it. By adopting the practices outlined here, you take a step toward more efficient and mindful use of technology that is tailored to your individual needs and usage patterns. Identify major energy consumers

Detailed explanation of CSS dimension properties: height and width In front-end development, CSS is a powerful style definition language. Among them, height and width are the two most basic dimension attributes, used to define the height and width of the element. This article will analyze these two properties in detail and provide specific code examples. 1. Height attribute The height attribute is used to define the height of an element. You can use pixel, percentage or

請問如何修改url某一參數(shù)的參數(shù)值呢?是要拆開了再拼回去嗎?那么請問如何修改url某一參數(shù)的參數(shù)值呢?是要拆開了再拼回去嗎?http://127.0.0.1/myo/newuser.php?mod=search&type=fastone比如現(xiàn)在我要修改mod=new要怎么做呢?------解決方案--------------------發(fā)送了請求
