有啊。直接將賬號密碼POST 到另一個PHP 接受。。
主要從事網(wǎng)頁設(shè)計、PC網(wǎng)站建設(shè)(電腦版網(wǎng)站建設(shè))、wap網(wǎng)站建設(shè)(手機版網(wǎng)站建設(shè))、響應(yīng)式網(wǎng)站開發(fā)、程序開發(fā)、微網(wǎng)站、小程序制作等,憑借多年來在互聯(lián)網(wǎng)的打拼,我們在互聯(lián)網(wǎng)網(wǎng)站建設(shè)行業(yè)積累了豐富的成都網(wǎng)站制作、成都網(wǎng)站設(shè)計、網(wǎng)絡(luò)營銷經(jīng)驗,集策劃、開發(fā)、設(shè)計、營銷、管理等多方位專業(yè)化運作于一體,具備承接不同規(guī)模與類型的建設(shè)項目的能力。
index.php
form name="form1" method="post" action="confirm.php"
p用戶名:input type="text" name="user"/p
p密碼:input type="password" name="pwd"/p
pinput type="submit" /p
/form
confirm.php
?php
$user = isset($_POST['user'])? $_POST['user'] : '';
$pwd = isset($_POST['pwd'])? $_POST['pwd'] : '';
if(empty($user) || empty($pwd)){
echo '用戶名和密碼不能為空';
exit();
}
if($user=='user' $pwd=='pwd'){
echo '登陸成功';
}else{
echo '用戶名或密碼錯誤';
}
?
不用數(shù)據(jù)庫是不能實現(xiàn)的。 我們可以用文本承載;(當然文本也屬于是數(shù)據(jù)庫) ( 代碼看看這) 或者用XML來承載。
php無需mysql數(shù)據(jù)庫支持,能夠?qū)崿F(xiàn)簡單的用戶注冊
注冊頁面:reg.html
form action="reg.php" method="POST"
table
trtd用戶名:/tdtdinput type="username" size="20"/td/tr
trtd密碼:/tdtdinput type="userpass" size="20"/td/tr
trtd確認密碼:/tdtdinput type="ruserpass" size="20"/td/tr
trtd郵箱:/tdtdinput type="email" size="50"/td/tr
trtd電話:/tdtdinput type="telphone" size="20"/td/tr
trtdinput type="Submit" value="注冊"/td/tr
/table
/form
接收頁面:reg.php
%php
$db = mysql_connect("localhost", "root", "12345");
mysql_select_db("dataname", $db);
mysql_query("insert into tablename(username, userpass, email, telphone) values('$_POST[username]', '$_POST[userpass]', '$_POST[email]', '$_POST[telphone]')");
echo "注冊成功";
%
信息終究是要存儲的,最終都需要存儲在文件中,數(shù)據(jù)庫在這個事情上可以讓為是幫你管理一大堆的“文件”,其他的如csv、excel,也算是變相的一種數(shù)據(jù)庫了;
如果非不要數(shù)據(jù)庫,建議直接生成靜態(tài)html吧,可以用markdown之類的工具。修改不方便。
分享題目:php注冊不用數(shù)據(jù)庫 php注冊不用數(shù)據(jù)庫嗎
網(wǎng)頁鏈接:http://chinadenli.net/article14/dodcjde.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供搜索引擎優(yōu)化、靜態(tài)網(wǎng)站、建站公司、移動網(wǎng)站建設(shè)、網(wǎng)站設(shè)計公司、網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)