0
기본적으로 NSURLConnection
을 사용하여 웹 양식 데이터를 게시하는 방법을 알고 있습니다. 그러나 문제는 웹 양식에 3 개의 제출 버튼이 있으며, 그 중 하나를 클릭하면 서버가 클릭 한 것을 확인합니다. iOS 또는 코코아에서 서버에 대해이 사실을 어떻게 알릴 수 있습니까?웹 양식 제출 버튼의 정보를 코코아 서버에 게시하는 방법은 무엇입니까?
<form name="myform" action="checkLogin.jsp" method="post" onSubmit="return checkSubmit();">
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td height="38" width="80" class="login_txt">account: </td>
<td width="200"><input type="text" class="editbox4" name="username" id="username" value="" size="20" maxlength="24"></td>
<td width="240"> </td>
</tr>
<tr>
<td height="35" class="login_txt">password: </td>
<td><input type="password" class="editbox4" name="password" id="password" size="20" maxlength="24" style="height: 25px;vertical-align: middle;"> <img src="public/images/luck.gif" width="19" height="18" style="vertical-align: bottom;"></td>
<td> </td>
</tr>
<tr>
<td height="35" class="login_txt">ip: </td>
<td><span class="login_txt">118.228.173.165</span><input type="hidden" name="ip" value="118.228.173.165"> </td>
<td> </td>
</tr>
<tr>
<td height="35" colspan="3"><input type="submit" value="connect" class="login_button" name="action"> <input type="submit" value="disconnect" class="login_button" name="action"> <input type="submit" value="manage" class="login_button" name="action"></td>
</tr>
</table>
</form>