我在做一個非常簡單的釣魚遊戲。用戶不得不買鍋,很容易。
現在購買鍋的形式看起來很簡單現在PHP表格不適用於我
title1 - box1 - submit_buttom1
title2 - box2 - submit_buttom2
當用戶輸入信息到box1
然後他們點擊有鍵盤submit_button1
的「輸入」被激活並運行該腳本通過。
但是當用戶輸入信息到box2
並且他們在那裏點擊「輸入」鍵盤時,submit_button1
被激活。
現在我可以理解這種情況聽起來很混亂,所以我已經把它放到網上
這是我的腳本
echo "<table border=\"0\" cellspacing=\"3\" cellpadding=\"3\" >\n";
echo "<form method=\"post\" action=\"index.php\">\n";
echo "<tr><td>North Pot</td><td><input type=\"text\" name=\"northpot\"></td>\n";
echo "<td colspan=\"2\" align=\"center\"><input type=\"submit1\" name=\"submit1\" value=\"Buy\"></td></tr>\n";
echo "</forum></table>";
echo "<table border=\"0\" cellspacing=\"3\" cellpadding=\"3\" >\n";
echo "<form method=\"post\" action=\"index.php\">\n";
echo "<tr><td>South Pot</td><td><input type=\"text\" name=\"southpot\"></td>\n";
echo "<td colspan=\"2\" align=\"center\"><input type=\"submit2\" name=\"submit2\" value=\"Buy\"></td></tr>\n";
echo "</forum></table>";
如果你需要了信息,請只是說
會這樣做,我希望我可以選擇多個人:( – 2011-12-18 22:06:24