查看完整版本: 我的輸入後顯示Object not found!
頁: [1]

l1331200 發表於 2016-1-16 02:22 PM

我的輸入後顯示Object not found!

本帖最後由 snowflying 於 2016-1-18 04:37 PM 編輯

我想讓資料顯示在水平線下面

能指點我哪裡做錯了或該怎麼改嗎?



=======================我是程式碼===================================


<!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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>KILO的電子商城</title>
<style type="text/css">
.auto-style2 {
        border-width: 1px;
        background-color: #0066CC;
}
.auto-style3 {
        font-family: 微軟正黑體;
        font-size: xx-large;
        font-weight: bold;
}
.auto-style4 {
        color: #FFFFFF;
}
</style>
</head>


<body style="background-color: #405A77">

<table border="1" width="100%" height="307">
        <tr>
                <td class="auto-style2">
<form method="POST" action="--WEBBOT-SELF--">
        <!--webbot bot="SaveResults" U-File="C:\xampp\htdocs\_private\form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->

        <p align="center" class="auto-style3">KILO的電子商城</p>
        <table border="1" width="100%">
                <tr>
                        <td align="center" bgcolor="#00FFFF">
                        <p align="left"><b><font style="font-size: 16pt">品名</font></b></td>
                        <td align="center" bgcolor="#00FFFF"><b>
                        <font style="font-size: 16pt">單價</font></b></td>
                        <td align="center" bgcolor="#00FFFF"><b>
                        <font style="font-size: 16pt">數量</font></b></td>
                </tr>
                <tr>
                        <td align="left" bgcolor="#008080"><b>Pioneerrrrr SE-MX7耳罩式耳機</b></td>
                        <td align="center" bgcolor="#008080"><b>5000</b></td>
                        <td align="center" bgcolor="#008080">
                        <input name="T1" size="15" style="font-weight: 700"></td>
                </tr>
                <tr>
                        <td align="left" bgcolor="#008080"><b>鐵四角 CKS77X耳塞式耳機</b></td>
                        <td align="center" bgcolor="#008080"><b>3900</b></td>
                        <td align="center" bgcolor="#008080">
                        <input name="T2" size="15" style="font-weight: 700"></td>
                </tr>
                <tr>
                        <td align="left" bgcolor="#008080"><b>MiOoO GPS</b></td>
                        <td align="center" bgcolor="#008080"><b>8000</b></td>
                        <td align="center" bgcolor="#008080">
                        <input name="T3" size="15" style="font-weight: 700"></td>
                </tr>
                <tr>
                        <td align="left" bgcolor="#008080"><b>VIphone</b></td>
                        <td align="center" bgcolor="#008080"><b>16000</b></td>
                        <td align="center" bgcolor="#008080">
                        <input name="T4" size="15" style="font-weight: 700"></td>
                </tr>
                <tr>
                        <td align="center" colspan="3" bgcolor="#008080">
                        <b>會員身分</b><input type="radio" value="V5" name="R1" style="font-weight: 700" checked><b>一般會員(9折)</b><input type="radio" value="V6" name="R1" style="font-weight: 700"><b>金卡會員(8折)</b><input type="radio" value="V7" name="R1" style="font-weight: 700"><b>白金會員(7折)</b><input type="radio" value="V8" name="R1" style="font-weight: 700"><b>VIP會員(6折)</b></td>
                </tr>
        </table>
        <p align="center">
        <input type="submit" value="送出" name="B1" style="font-family: 標楷體; color: #000000; font-size: 16pt; font-weight: bold; border: 3px ridge #669999; background-color: #808080">  
        <input type="reset" value="重設" name="B2" style="font-size: 16pt; font-family: 標楷體; color: #000000; font-weight: bold; border: 3px ridge #008080; background-color: #808080"></p>
</form>
                </td>
                </tr>
        </table>


<br><hr size="6" class="auto-style4">
            
<?php
$a1=$_POST["T1"];  // 品項一數量
$a2=$_POST["T2"];  // 品項二數量
$a3=$_POST["T3"];  // 品項三數量
$a4=$_POST["T3"];  // 品項四數量*/


$b=$a1*"3500"+$a2*"13500"+$a3*"8000"+$a4*"16000";  //原始金額
$c=$_POST["R1"];            //會員折扣計算
switch($c){
    case"V5":
      $c1=$b*0.9;
      break;
    case"V6":
      $c1=$b*0.8;
      break;      
    case"V7":
      $c1=$b*0.7;
      break;   
    case"V8":
      $c1=$b*0.6;
      break;   
    }
$d=$c1/20;              //紅利點數
                  
echo "<b><font size=\"5\" color=\"000000\" face=\"新細明體\" >您好:<br>您的結帳資訊如下<br>";
echo "原始總金額:" . $b . "<br>";
echo "折扣後應付總金額" . $c1;
echo "<br>本次紅利點數:" . $d . "點</font></b>";


?>




</body>


</html>




=======================我是程式碼===================================
...<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div><div></div>

poxwu2002 發表於 2016-1-19 02:26 AM

你這個檔案的檔名是什麼??
例如是 countTotal.php

請修改你的
<form method="POST" action="--WEBBOT-SELF--">
改成
<form method="POST" action="countTotal.php">

l1331200 發表於 2016-1-19 09:47 PM

poxwu2002 發表於 2016-1-19 02:26 AM static/image/common/back.gif
你這個檔案的檔名是什麼??
例如是 countTotal.php



謝謝你,我弄好了
我後面還有一串webbot沒砍掉
砍掉和檔名就好了
頁: [1]