PHP 入門指南 - encryptor_software.php




encryptor_software.php 的程式原始碼如下

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
<?php
// include
include "encryptor_function.php";
 
// switch
switch ($_REQUEST['op']) {
    case "New":
        $main = input_form();
        $display = new_button();
        break;
     
    case "Load":
        $main = input_form();
        $display = load_button();
        break;
     
    case "Encode":
        $main = input_form();
        $display = encode_button($_POST["input"]);
        break;
     
    case "Decode":
        $main = input_form();
        $display = decode_button($_POST["input"]);
        break;
     
    case "Clean":
        $main = input_form();
        $display = clean_button();
        break;
     
    case "record":
        $main = record();
        $display = "record";
        break;
     
    case "about":
        $main = about();
        $display = "about";
        break;
     
    default:
        $main = input_form();
        $display = "something happened";   
}
 
// make page
echo make_page($main, $display);
 
/* 《程式語言教學誌》的範例程式
    檔名:encryptor_software.php
    功能:示範 PHP 程式
    作者:張凱慶
    時間:西元 2012 年 11 月 */
?>


您可以繼續參考
範例程式碼


相關目錄
回 PHP 入門指南
回 PHP 教材
回首頁


參考資料
http://www.php.net/
http://www.php.net/manual/en/getting-started.php
http://www.w3schools.com/php/default.asp
http://www.apache.org/
http://www.mysql.com/
http://dev.mysql.com/doc/index.html
http://www.appservnetwork.com/

沒有留言: