php - NSArray issue in iOS -
i sending array object php server. i'm not sure how send array format data php server
when i'm trying send array format array format like.how remove brases , double quotes
"( vdsvvdsvdsv )"
please let me know how can properly.
this line
[request sethttpbody:[[nsstring stringwithformat:@"userid=%@&projectsponsor=%@&projectid=%@", userid,addsponsoremailstringinmodel,projectid] datausingencoding:nsutf8stringencoding]];
should 2 parts
nsstring *emails = [addsponsoremailstringinmodel componentsjoinedbystring:@","]; [request sethttpbody:[[nsstring stringwithformat:@"userid=%@&projectsponsor=%@&projectid=%@", userid,emails,projectid] datausingencoding:nsutf8stringencoding]];
so explicitly converting array string format expected server
Comments
Post a Comment