Submit form to a website, that is not mine?

Discussion in 'iOS Programming' started by Thelle93, Nov 9, 2012.

  1. Thelle93 macrumors newbie

    Joined:
    Oct 7, 2012
    #1
    I'm building an iPhone application and I'm trying to upload a submit form that includes "name" + "value" to a website form. The website is not mine, will I be able to do that with PHP? If so, how? What resources can I use? :)

    Thanks
     
  2. waterskier2007 macrumors 68000

    waterskier2007

    Joined:
    Jun 19, 2007
    Location:
    White Lake, MI
    #2
    It sounds like you would have to figure out the structure of the page that you want to post to. What do they use to post to it? Is it publicly available? Do they maybe have an API you could implement?
     
  3. Thelle93 thread starter macrumors newbie

    Joined:
    Oct 7, 2012
  4. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    When a web form is submitted a POST or GET is generated in a certain format (application/x-www-form-urlencoded, or multipart/form-data).

    All of the NSURLConnection wrappers have support for this. See AFNetworking and ASIHTTPRequest.

    Also see:

    http://en.wikipedia.org/wiki/Html_form
     

Share This Page