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つずつ閉じてください

<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 に答える