사용자가 작성할 수있는 양식으로 html5 및 PHP를 작성하려고합니다. 그들이 제출을 강타 할 때마다 5 열마다 그룹화되어 전체를 검색 할 수있는 전체 평가 카테고리가 필요합니다. 예 :grouping/id를 가진 테이블/폼을 나중에 가져 오기 위해 제출하는 방법
<parameters>
<parameterID>9214</parameterID>
<parameter>MC Bands</parameter>
<Yevaluation/>
<Mevaluation/>
<Cevaluation/>
<Kevaluation/>
<comments/>
</parameters>
<parameters>
<parameterID>9245</parameterID>
<parameter>MC Streaks</parameter>
<Yevaluation/>
<Mevaluation/>
<Cevaluation/>
<Kevaluation/>
<comments/>
</parameters>
양식 및 입력 테이블에이 문제가 발생하여 나중에 카테고리 ID로 가져올 수 있습니다. 숨겨진 셀로 가려고했지만 첫 번째 테이블 셀에 값을 둡니다.
이
은 table.php에 : 나는 문제 형태로 제출 된 테이블 데이터와 좋은 예제를 찾는 데<form method="get" action="visEupload.php">
<table id="bigTable" border="1">
<thead>
<tr>
<th id="bandY" class="col3">Bands @263mm Y</th>
<th id="bandM" class="col3">Bands @263mm M</th>
<th id="bandC" class="col3">Bands @263mm C</th>
<th id="bandK" class="col3">Bands @263mm K</th>
<th id="Comments" class="col3">Comments</th>
</tr>
</thead>
<tbody>
<tr>
<td><input name="MCBands" value="9214" id="MCBands" visibility=hidden> <!--this isn't showing up as hidden-->
<td><input name="Yevaluation" ></td> //Row 0 Column 1
<td><input name="Mevaluation" ></td> //Row 0 Column 2
<td><input name="Cevaluation" ></td> //Row 0 Column 3
<td><input name="Kevaluation" ></td> //Row 0 Column 4
<td><input name="comment" ></td> //Row 0 Column 4
<!--the above rows will repeat with different id's/names/values/cells, ex. streaks and will be really wide-->
</tr>
</tbody>
</table>
<input id="submit" type="submit" class="list" name="submit" value="Submit To Database" >
</form>
. 나는 이것을 보았지만 다른 것은 html tables이다. 내가 제출 히트 후
, 나는 visEupload.php이처럼 검색 해요,하지만 어쩌면 그것은 내가 모든 몇 행에 추가 해요 여분의 parameterID 제공 할 수있는 더 좋은 방법이 :
if (isset($_GET['submit'])){
$Yevaluation= $_GET['Yevaluation'];
$Mevaluation= $_GET['Mevaluation'];
$Cevaluation= $_GET['Cevaluation'];
$Kevaluation= $_GET['Kevaluation'];
$MCBands= $_GET['MCBands'];
$comment=$_GET['comment'];
echo "here:".$Yevaluation.$Mevaluation.$Cevaluation.$Kevaluation.$MCBands.$comment;
echo "here1";
echo ("visE upload requested");
} //submit is set
m를 당신처럼 입력 요소의 이름과 같은 배열을 사용할 수 있습니다 요소 이름과 같은 배열을 사용하여 그렇게 할 수 있습니다. 자세한 내용은 내 대답 [여기] (http://stackoverflow.com/questions/24888330/how-to-submit-table-form-with-grouping-id-to-retrieve-later/24888551#24888551)을 참조하십시오 –