日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

PHP實(shí)例程序:用PHP制作登錄頁面程序_PHP教程

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!

推薦:PHP實(shí)例:用PHP實(shí)現(xiàn)多文件上載系統(tǒng)程序
以下為引用的內(nèi)容: <?php //多文件上載系統(tǒng)完整版 include("../include/common.inc"); $title = "多個(gè)文件的上

以下為引用的內(nèi)容:

<?php
//這個(gè)腳本是用來給用戶輸入口令,并判斷口令是否正確的。
//如果正確則轉(zhuǎn)到歡迎頁面。
if ($login){
include("../include/config.inc.php3");
session_start();
$right_enter='0';
$query="select * from user_define where user_login='$user_login' and user_pass=password('$user_pass')";
$result=@mysql_query($query,$dbconnect);
if ($user_array=@mysql_fetch_array($result)){
$user_id=$user_array[user_id];
$user_name=$user_array[user_info];
session_register("user_id");
session_register("user_name");
session_register("user_array");
if(($user_array[ticket_day]) and ($user_array[ticket_num])){
$right_enter='1';
}
else{
$error_message="對(duì)不起,您沒有訂票的權(quán)限!";
}
}
else{
$error_message="錯(cuò)誤!用戶名錯(cuò),或口令錯(cuò)。請重新輸入。";
}
$log_time=date("Y-m-d H:i:s");
$query="insert into log_record (log_time,user_login,remote_addr,right_enter,enter_function) values ('$log_time','$user_login','$REMOTE_ADDR','$right_enter','1')";
@mysql_query($query,$dbconnect);
if($right_enter){
Header("Location: welcome_reserve.php3");
exit;
}
}
if($logout){
session_start();
session_unregister("user_id");
session_unregister("user_name");
session_unregister("user_array");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>用戶登錄</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../include/njz_common.css">
</head><body>
<p> </p>

<form name="form1" method="post" action="<?php echo $PHP_SELF; ?>" >
<table width="289" border="1" cellspacing="0" cellpadding="1" bordercolor="#999999" align="center">
<tr bgcolor="#999999">
<td>
<div align="center"><font color="#FFFFFF" size="4">用戶登錄</font></div>
</td>
</tr>
<tr>
<td>
<table width="267" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td width="94">
<div align="right">用戶:</div>
</td>
<td width="169">
<input type="text" name="user_login" size="16" maxlength="16" value="<?php echo $user_login; ?>">
</td>
</tr>
<tr>
<td width="94">
<div align="right">口令:</div>
</td>
<td width="169">
<input type="password" name="user_pass" size="16" maxlength="16">
</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" name="login" value=" 登 錄 ">
<input type="button" name="return_index" value="返回首頁" onClick="form1.action='../include/goto_page.php3?dist_page=../main.php3';form1.submit();return;">
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<?php
if($error_message) echo "<center><font color='#ff0000'>$error_message</font></center>";
?>
<SCRIPT language="JavaScript">document.form1.user_login.focus();
</SCRIPT>
<p> </p>
<?php include("../footer.php3"); ?>
</body>
</html>

分享:PHP實(shí)例:用PHP簡單實(shí)現(xiàn)多條件查詢
在我們的網(wǎng)站設(shè)計(jì)過程中,經(jīng)常會(huì)用到多條件查詢,本文的源碼是一個(gè)二手房屋查詢的例子。在本例中,我們要實(shí)現(xiàn)能夠通過地理位置,物業(yè)類型,房屋價(jià)格,房屋面積及信息發(fā)布日期等多個(gè)條件查詢到客

來源:模板無憂//所屬分類:PHP教程/更新時(shí)間:2008-08-22
相關(guān)PHP教程