PHP 入門指南 - encryptor_software.php




encryptor_software.php 的程式原始碼如下

<?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);

/* 《程式語言教學誌》的範例程式
    http://pydoing.blogspot.com/
    檔名: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/

沒有留言: