I am trying to submit a login form (which can be viewed here) in my app, but there is no PHP file whatsoever – so how can I code something similar to this, just without the PHP and just literally inputting text into the text fields in UIWebView and then submitting the data to the destination URL?
Thanks!
It doesn’t matter if the server is PHP or any other technology. You can use
NSURLRequestto submit it.Anyway, if for some reason you need to use the
UIWebViewapproach, you’ll need to fill the form and submit it using JavaScript withstringByEvaluatingJavaScriptFromString.Add something like this in
-[UIWebViewDelegate webViewDidFinishLoad:]: (adjust jQuery paths to your case)