I am a little bit stuck on how to fill in the below form using ASIFormDataRequest in the iOS SDK.
An example of the code in the ASP form is below:
And having looked at the ASIFormDataRequestDocs I have started writing the code:
Can anybody tell me if I'm doing this right? Or how I should go about doing this.
Thanks to all,
An example of the code in the ASP form is below:
Code:
<form name="shipment_form" method="POST" action="shipment.asp" onSubmit="return form_check();">
<input type="hidden" name="action" value="send_enquiry">
<table width="312" border="0" cellpadding="0" cellspacing="4" id="Form table">
<tr align="left" valign="middle">
<td colspan="2"><span class="intro-highlight-text">CONTACT
DETAILS </span></td>
</tr>
<tr align="left" valign="middle">
<td width="106">Company</td>
<td width="232"> <input name="company" type="text" class="textfield-height" id="Company" size="20" maxlength="50">
</td>
</tr>
<tr align="left" valign="top">
<td width="106">Company Address</td>
<td width="232"> <input name="address1" type="text" class="textfield-height" id="Address1" size="20" maxlength="80">
<input name="address2" type="text" class="textfield-height" id="Address2" size="20" maxlength="80">
<input name="address3" type="text" class="textfield-height" id="Address3" size="20" maxlength="80"></td>
</tr>
And having looked at the ASIFormDataRequestDocs I have started writing the code:
Code:
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setRequestMethod:@"POST"];
[request setPostValue:[completeData objectAtIndex:0] forKey:@"company"];
[request setDelegate:self];
Can anybody tell me if I'm doing this right? Or how I should go about doing this.
Thanks to all,