나는 아주 간단한 낚시 게임을 만들고 있습니다. 사용자는 충분히 쉽게 냄비를 구입해야합니다.
이제 냄비를 구입 형태는PHP 폼이 저를 위해 작동하지 않습니다
title1 - box1 - submit_buttom1
title2 - box2 - submit_buttom2
이제 사용자 입력 box1
에 정보 그리고 그들은 클릭이 키보드 설정 submit_button1
의 "입력"이 활성화 될 때 매우 간단 외모와 스크립트를 통해 실행됩니다.
그러나 사용자가 box2
에 정보를 입력하고 키보드에서 "enter"를 클릭하면 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>";
그래서이 매우 혼란 소리를하는 방법을 이해할 수있다, 단지 말 해주세요
할 것이어야한다, 나는 하하하 –