0
이 코드를 성공적으로 테스트했지만 PHP에서만 작동하며 ASP에서 TextBox의 이름을 입력하면 작동하지 않습니다. 내가 여기 ASP.NETiPhone에서 ASP.NET으로 데이터를 게시
if (![nameInput.text isEqual: @""] && ![passInput.text isEqual: @""])
{
NSString *postString = [NSString stringWithFormat:@"name0=%@&name1=%@", nameInput.text, passInput.text];
NSData *data = [postString dataUsingEncoding:NSASCIIStringEncoding];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"http://www.ucimsewebu.eu/info.php"]];
[request setHTTPMethod:@"POST"];
[request setHTTPBody:data];
[webView loadRequest:request];
}
그리고하기에 어떤 도움을 greatful 될 것은 ASP의 텍스트 상자 코드입니다
<tr>
<td>
<span id="cphmain_LabelJmeno">Přihlašovací jméno:</span></td>
<td>
<input name="ctl00$cphmain$TextBoxjmeno" type="text" id="cphmain_TextBoxjmeno" />
</td>
</tr>
<tr>
<td>
<span id="cphmain_LabelHeslo">Heslo:</span></td>
<td>
<input name="ctl00$cphmain$TextBoxHeslo" type="password" id="cphmain_TextBoxHeslo" title="heslo" />
</td>
</tr>
<tr>
이 참조 요청 컬렉션을 루프 : http://www.microsoft.com/web/post/connecting-the-iphone-with-aspnet-web-pages – laxonline
ASP 코드를 게시하십시오. – laxonline
나는 이걸 사용하기 위해 아무 것도하지 않았고, name0은 ASP의 TextBox 이름의 이름을 사용하지 않았다. –