아래 양식을 작성했습니다. 사용자가 필드 수 (예 : 6)를 입력하면 아래 표에 6 개의 행이 있음을 알 수 있습니다. 제출 단추없이이 작업을 수행 할 수 있다면 (이 작업을위한 트리거가 텍스트 입력 상자에서 나오기 때문에) 좋을 것입니다. 이 같은 결과를 얻을 것이다 방법에 비해, (버튼을 제출하지 않고) 할 수없는 경우html과 php로이 작업을 수행 할 수 있습니까?
<fieldset>
<legend>Student Information</legend>
Number of fields: <input type="text"><br />
Total number of characters: <input type="text">
<br>
<br>
<table border="1">
<th></th>
<th>field</th>
<th>number of characters</th>
<tr>
<td>1</td>
<td><input type="text"></td>
<td><input type="text"></td>
</tr>
<tr>
<td>2</td>
<td><input type="text"></td>
<td><input type="text"></td>
</tr>
</table>
</fieldset>
: 여기
이 양식의 HTML 코드? 어떤 도움이나 제안을 해주셔서 감사합니다.
JavaScript로 확인하십시오. – j08691
@ j08691 순수한 PHP/html 솔루션이 있습니까? JavaScript로이를 구현하기가 어렵습니까? – balboa
제출 버튼이 없으면 jquery를 제안하거나 ajax를 사용하여 (PHP에서 처리를 수행 할 수 있지만 다시 javascript 사용) 제출 버튼을 사용하면됩니다. 그러나 PHP/html 전용 솔루션을 사용할 수 있습니다. – Waygood