Php 为什么我不能让我的提交按钮工作?或者别的什么东西坏了?

Php 为什么我不能让我的提交按钮工作?或者别的什么东西坏了?,php,submit,Php,Submit,我无法让我的提交按钮工作,或者其他东西已关闭? 这是我提交的代码 我要做的是从下拉列表菜单中搜索并显示我在下拉列表菜单中选择的项目的所有详细信息 if(isset($_POST['Submit'])) { if($_POST['Submit'] == "Search" ) { $sql = "SELECT tbl_item.*, tbl_ingredient.brandname, tbl_misc.size , tbl_misc

我无法让我的提交按钮工作,或者其他东西已关闭? 这是我提交的代码

我要做的是从下拉列表菜单中搜索并显示我在下拉列表菜单中选择的项目的所有详细信息

if(isset($_POST['Submit']))
    {

        if($_POST['Submit'] == "Search" )
        {

            $sql = "SELECT tbl_item.*, tbl_ingredient.brandname, tbl_misc.size , tbl_misc.color
                    FROM (tbl_item LEFT JOIN tbl_ingredient ON tbl_item.itemid = tbl_ingredient.itemid) LEFT JOIN tbl_misc ON tbl_item.itemid = tbl_misc.itemid Where tbl_item.itemid = ". $_POST['Item'];
        }
        //---------------------------------------------------------------------------------------------
        echo "<br>";
        echo "<table width='990' height='69' border='1' align='center' cellpadding='0' cellspacing='0'>";
        echo "<tr>";
        echo  "<td width='150' height='23'><div align='center'>Item Name</div></td>";
        echo   "<td width='153'><div align='center'>High Quantity Threshold</div></td>";
        echo   "<td width='151'><div align='center'>Low Quantity Threshold</div></td>";
        echo   "<td width='127'><div align='center'>Quantity per unit</div></td>";
        echo   "<td width='72'><div align='center'>Item Type</div></td>";
        echo   "<td width='37'><div align='center'>Description</div></td>";
        echo   "<td width='94'><div align='center'>Brand Name</div></td>";
        echo   "<td width='90'><div align='center'>Size</div></td>";
        echo   "<td width='100'><div align='center'>Color</div></td>";
        echo   "<td width='100'><div align='center'>Action</div></td>";
        echo   "</tr>";

        $holder = pg_query($sql);
        $col = 0;
 while ($row = pg_fetch_array($holder, NULL, PGSQL_ASSOC))
        {               
        $itemname = $row['itemname'];
        $highqntythreshold = $row['highqntythreshold'];
        $lowqntythreshold = $row['lowqntythreshold'];
        $qpunit = $row['qntyperunit'];
        $itemtype = $row['itemtype'];
        $description = $row['description'];
        $brandname = $row['brandname'];
        $size = $row['size'];
        $color = $row['color'];

    echo "<tr align='center' bgcolor = ''>";
    echo "<td height='23'>".$itemname."</td>";
    echo "<td>".$highqntythreshold."</td>";
    echo "<td>".$lowqntythreshold."</td>";
    echo "<td>".$unit."</td>";
    echo "<td>".$itemtype."</td>";
    echo "<td>".number_format($price,2)."</td>";
    echo "<td>".$brandname."</td>";
    echo "<td>".$size."</td>";
    echo "<td>".$color."</td>";
    echo "<td>.Edit</td>";            
    echo "</tr>";

        }
    }

谢谢

你的表单代码在哪里?你有什么错误吗?你还有错误吗?哦…该死的,我知道有点不对劲:谢谢。。你能教我如何使用吗?我想让它像更新和项目细节的事情,当你按下链接编辑回声;它将包括tableforupdate.php,这样我就可以把需要更新的所有日期都放在那里。?我不确定我是否解释得很好。