Archive for 十一月, 2008

28
十一月

微分方程11/28上課

   Posted by: admin    in 97(上)微分方程

20081128EMath

二階齊性柯西方程式

二階齊性柯西方程式

例2-6和例2-7

例2-6和例2-7

2-3解自由振盪電路

2-3解自由振盪電路

例2-3

例2-3

2-5  N階常係數O.D.E的齊性解及例2-9

2-5 N階常係數O.D.E的齊性解及例2-9

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags: , ,

27
十一月

網頁程式設計11/27程式save.php

   Posted by: admin    in 97(上)網頁程式設計

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<html>
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>Save to database</title>
</head>
<?php
  $Var1=$_POST["dept"];
  $Var2=$_POST["class"];
  $Var3=$_POST["R1"];
  $Var4=$_POST["date"];
?>
<body>
 
	<table border=1 width=600>
	<tr>
		<td colspan='2' align=center>恐龍展-報名完成
		</td>
	</tr>
 
	<tr>
		<td>科系
		</td>
		<td>
<?php
echo "
$Var1 ";
?>
		</td>
	</tr>
		<tr>
		<td>班級
		</td>
		<td>
<?php
echo "
$Var2 ";
?>
		</td>
	</tr>
	<tr>
		<td>是否參加
		</td>
		<td>
<?php
echo "
$Var3 ";
?>
		</td>
	</tr>
	<tr>
		<td>日期
		</td>
		<td>
<?php
echo "
$Var4 ";
?>
		</td>
	</tr>	
	</table>
 
 
</body>
<?php
$link=mysql_connect("localhost", "bioinfo", "6193") or die(mysql_error());
mysql_select_db("dino") or die(mysql_error());
$query="INSERT INTO reg(Dept, Class, Ans, InDate) VALUES('$Var1', '$Var2', '$Var3', '$Var4')";
$result=mysql_query($query) or die(mysql_error());
mysql_close($link);
?>
</html>

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags: , , ,

27
十一月

網頁程式設計11/27程式confirm.php

   Posted by: admin    in 97(上)網頁程式設計

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<html>
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>Confirm form</title>
</head>
<?php
  $Var1=$_POST["dept"];
  $Var2=$_POST["class"];
  $Var3=$_POST["R1"];
  $Var4=$_POST["date"];
?>
<body>
 
<form method="POST" action="save.php">
	<table border=1 width=600>
	<tr>
		<td colspan='2' align=center>恐龍展-確認報名表資料
		</td>
	</tr>
 
	<tr>
		<td>科系
		</td>
		<td>
<?php
echo "
<input type='hidden' name='dept' value='$Var1'>
$Var1 ";
?>
		</td>
	</tr>
		<tr>
		<td>班級
		</td>
		<td>
<?php
echo "
<input type='hidden' name='class' value='$Var2'>
$Var2 ";
?>
		</td>
	</tr>
	<tr>
		<td>是否參加
		</td>
		<td>
<?php
echo "
<input type='hidden' name='R1' value='$Var3'>
$Var3 ";
?>
		</td>
	</tr>
	<tr>
		<td>日期
		</td>
		<td>
<?php
echo "
<input type='hidden' name='date' value='$Var4'>
$Var4 ";
?>
		</td>
	</tr>
	<tr>
		<td><input type="submit" value="送出" name="B1">
		</td>
		<td><a href="javascript:history.back()">上一頁</a>		
		</td>
	</tr>	
	</table>
</form>
 
</body>
 
</html>

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags: , , ,

27
十一月

網頁程式設計11/27程式hw.htm

   Posted by: admin    in 97(上)網頁程式設計

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<html>
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>Registration form</title>
</head>
 
<body>
 
<form method="POST" action="confirm.php">
	<table border=1 width=600>
	<tr>
		<td colspan='2' align=center>恐龍展報名表
		</td>
	</tr>
 
	<tr>
		<td>科系
		</td>
		<td><input type='text' name='dept'>
		</td>
	</tr>
		<tr>
		<td>班級
		</td>
		<td><input type='text' name='class'>
		</td>
	</tr>
	<tr>
		<td>是否參加
		</td>
		<td>
<input type='radio' value='YES' name='R1' checked>是
<input type='radio' value='NO' name='R1'>否
		</td>
	</tr>
	<tr>
		<td>日期
		</td>
		<td><input type='text' name='date'>
		</td>
	</tr>
	<tr>
		<td><input type="submit" value="送出" name="B1">
		</td>
		<td><input type="reset" value="重新設定" name="B2">		</td>
	</tr>	
	</table>
</form>
 
</body>
 
</html>

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags: , , ,

27
十一月

網頁程式設計11/27上課

   Posted by: admin    in 97(上)網頁程式設計

20081127WebProg

從註冊表單(hw.htm)-&gt;表單確認(confirm.php)-&gt;到註冊完成,存到資料庫

從註冊表單(hw.htm)->表單確認(confirm.php)->到註冊完成,存到資料庫

save.php

save.php

建立一個MYSQL 帳號

建立一個MYSQL 帳號

建立一個MYSQL 資料庫

建立一個MYSQL 資料庫

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags: , , ,