0
않는 나는 다음과 같은 HTML 양식 즉, 다음과 같은 코드가 process.php에 제출
<form id="form2" name="form2" method="post" action="process.php">
<table width="271" border="1">
<tr>
<td width="5"><input name="txtIdone2" type="text" id="txtIdone2" value="Richard" /></td>
<td width="250">
<label for="txtIdone"></label>
<input name="txtIdone" type="text" id="txtIdone" value="Hopes" />
</td>
</tr>
<tr>
<td><input name="txtIdone3" type="text" id="txtIdone3" value="Testing" /></td>
<td><input name="txtIdone4" type="text" id="txtIdone4" value="this" /></td>
</tr>
<tr>
<td><input name="txtIdone5" type="text" id="txtIdone5" value="it" /></td>
<td><input name="txtIdone6" type="text" id="txtIdone6" value="works" /></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="btnTest" id="btnTest" value="Submit" />
</td>
</tr>
</table>
</form>
있습니다
$data = array($_POST);
print_r ($data);
간단한에게. 그러나, 반환되는 일반 배열 대신, 다중 배열을 받고 있어요.
Array
(
[0] => Array
(
[txtIdone2] => Richard
[txtIdone] => Hopes
[txtIdone3] => Testing
[txtIdone4] => this
[txtIdone5] => it
[txtIdone6] => works
)
)
난 그냥 일반 배열을 반환합니다 예를 들면 다음과 같습니다. 내가 도대체 뭘 잘못하고있는 겁니까?
감사합니다.