我已经以任何方式搜索以解决我的问题,但没有!
我有这个字段的网页:
<form method="post" name="form_verifica" action="popup.jsp">
<input name="cod" type="text" >
<td id="code" name="code" >
<input name="conc" type="text" >
<input src="" onclick="return checkcode();" type="image">
如何填写“cod”和“conc”字段,然后调用 checkcode() 函数?我试过这个:
NSURL *url = [NSURL URLWithString: @"MioURL/popup.jsp"];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:[NSString stringWithString: Codice.text] forKey:@"cod"];
[request setPostValue:[NSString stringWithString: Concorso.text] forKey:@"conc"];
[request startSynchronous];
我错了什么?
为我糟糕的英语道歉。提前致谢!