1.註冊t35.com
Your Personal FTP Information:
FTP Server: ftp.t35.com
FTP Port: 21
FTP Login: yamapi70188.t35.com
FTP Password: tomohisa

2.下載filezilla

3.001.html
表單(導向001.php)、欄位、按鈕


4.001.php:if條件式一
         $a=$_POST['t1'];
    if($a=="1")
    {
    echo "your choise is YamaP";
    }
    else if ($a=="2")
    {
    echo "your choise is Kim";
    }
    else
    {
    echo "no choise";
    }
    ?>
{}:欲執行的動作
else:其他
if:如果條件式

5.001.php
    "your choise is YamaP"
:文字顏色

6.001.php
插入>影像>選擇物件
屬性列>原始檔:../php/圖檔名稱

*絕對路徑vs相對路徑

7.002.html
表單(導向002.php).核取方塊(核取的值:1.2.3.4)

8.002.php:if條件式二
         $a=$_POST['t1'];
    $b=$_POST['t2'];
    $c=$_POST['t3'];
    $d=$_POST['t4'];
    if($b=="2" && $c=="3" && $d=="4")
    {
     echo "CORRECT";
    }
    else
    {
     echo "INCORRECT";
    }
    ?>
&&:and
||:or
!=:不等於

9.DW上傳
網站>新增網站>進階>本地資訊>網站名稱.本地根資料夾
網站>新增網站>進階>遠端資訊>存取:FTP>主機.登入.密碼
arrow
arrow
    全站熱搜

    atterici 發表在 痞客邦 留言(2) 人氣()