0

我在单页bcz中使用了多个表单我必须在我的浏览器中没有启用javascript的情况下工作我的页面..但问题是所有表单都在单页上重定向..即所有表单都转到第一个表单的操作..如果你可以更改第一个表单形成行动,然后所有表格都转到那个链接......我知道有一个愚蠢的错误,但我没有弄清楚......请帮助我......提前谢谢......

//html code

<div id="propertymenu">
        <table cellspacing="20">
            <tr>
                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="mainainancebills.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="PROPERTY DETAILS">
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="inspectionreport.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="INSPECTION REPORTS">
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="downloaddocument.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="DOWNLOAD DOCUMENTS">
                </font>
                </td>
            </tr>

            <tr>
                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="downloaddocument.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="STATEMENT OF ACCOUNT">
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="electricitybills.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="ELECTICITY BILLS">
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="downloaddocument.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="OTHERS">
                </font></td>
            </tr>

            <tr>
                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="expensestracker.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="DETAIL OF EXPENSES">
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="mainainancebills.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="MAINTENANCE BILLS">
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="ownerhome.php">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="submit" value="BACK">
                </form></td>
            </tr>
        </table>
    </div>
4

3 回答 3

1

这段代码有些地方是错误的。因为对于每种形式,都没有结束形式被写成意味着形式在每个形式开始时都不是关闭的。你正确的代码是

<div id="propertymenu">
        <table cellspacing="20">
            <tr>
                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="mainainancebills.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="PROPERTY DETAILS">
                </form>
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="inspectionreport.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="INSPECTION REPORTS">
                </form>
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="downloaddocument.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="DOWNLOAD DOCUMENTS">
                </form>
                </font>
                </td>
            </tr>

            <tr>
                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="downloaddocument.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="STATEMENT OF ACCOUNT">
                </form>
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="electricitybills.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="ELECTICITY BILLS">
                </form>
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="downloaddocument.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="OTHERS">
                </form>
                </font></td>
            </tr>

            <tr>
                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="expensestracker.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="DETAIL OF EXPENSES">
                </form>
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="mainainancebills.php">
                    <input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
                    <input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
                    <input type="hidden" value="<?PHP echo $area; ?>" name="area">
                    <input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
                    <input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
                    <input type="hidden" value="<?PHP echo $email; ?>" name="email">
                    <input type="submit" value="MAINTENANCE BILLS">
                </form>
                </font></td>

                <td style="background-color:#94EEF2;">
                <form method="post" class='propertylist' action="ownerhome.php">
                    <input type="hidden" value="<?PHP echo $property; ?>" name="pid">
                    <input type="submit" value="BACK">
                </form></td>
            </tr>
        </table>
    </div>
于 2012-11-08T07:04:07.803 回答
1

你有

</font> 

代替

</form> 

在里面一点。

于 2012-11-08T05:53:01.947 回答
0

请以 1 关闭表格 1

<form name="Your_firstform">

//Your code here

</form>


<form name="Your_secondform">

//Your code here

</form>

<form name="Your_thirdform">

//Your code here

</form>
于 2012-11-08T05:54:22.527 回答