軟件工程概論第一節

1、網站系統開發須要掌握的技術javascript

    PHP、.NET、HTML等編程語言中至少一種以及環境配置、腳本語言、數據庫鏈結等技術。php

2、課堂測試的源程序代碼html

   HTML源代碼:java

        

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登錄界面</title>
</head>mysql

<body>
<center>
<h1>請登陸</h1>
<br><br><br><br>
<form name="first" action="land2.php" method="post">
<table width="500" border="0" cellspacing="20" cellpadding="0">
<tr>
<td>用戶名:</td>
<td><input type="text" name="ures"></td>
</tr>
<tr>
<td>密碼:</td>
<td><input type="password" name="ps"></td>
</tr>
<tr>
</tr>
<tr>
<td colspan="3" align="center"><input type="submit" value="登陸"、><!--註冊按鈕-->
<input type="reset" value="取消"><!--取消按鈕-->

</tr>
</table>
</form>
<br><br><br>
</center>
</body>
</html>sql

 

 

PHP源代碼:  數據庫

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登錄</title>
</head>編程

<body><?php
if($_POST['ures']=='')
{
echo "<script>alert('用戶名不能爲空');</script>";
echo "<script language='javascript'>";
echo " location='index1.html ';";
echo "</script>";
}
elseif($_POST['ps']=='')
{
echo "<script>alert('密碼不能爲空');</script>";
echo "<script language='javascript'>";
echo " location='index1.html ';";
echo "</script>";
}
error_reporting(E_ALL^E_NOTICE^E_WARNING^E_DEPRECATED);
mysql_connect('localhost','root','');
mysql_select_db('mysql');
mysql_query('SET NAMES utf8');
$sql="SELECT password FROM menber2 WHERE user='$_POST[ures]'";
$rs=mysql_query($sql);
$row=mysql_fetch_assoc($rs);
$r=$_POST['ures'];
if($row)
{
if($row['password']==md5($_POST['ps']))
{
echo "<script>alert('登錄成功');</script>";
}
else
{
echo "<script>alert('密碼錯誤');</script>";
echo "<script language='javascript'>";
echo " location='index1.html ';";
echo "</script>";
}
}
else
{
echo "<script>alert('用戶名不存在');</script>";
echo "<script language='javascript'>";
echo " location='index1.html ';";
echo "</script>";
}編程語言

?>post

</body>
</html>

運行結果截圖:

3、課堂測試未按時完成的緣由

 不會把輸入密碼時那個「."改成」*「;

4、但願、目標以及安排

  但願經過對軟件工程概論的學習,在結課是能夠本身肚子或者小組合做完成一個軟件的自主研發,努力作出一個比較成功的軟件來;以及在網頁製做方面能夠本身製做簡單的小網頁,合做能夠完成比較有實用性的網站!

  之後在週一到週五天天抽出兩個小時時間來學習相關知識或者複習老師所講內容,或者動手進行實踐操做!

相關文章
相關標籤/搜索