0

I'm developing a simple application. The layout is:
when you open the application, a login screen appears. After the user clicks on the button "login", the application sends the two fields (username and password) to a login.php. login.php is:

<form method="POST">

<label for="id_username">Username:</label>
<input id="id_username" type="text" name="username" maxlength="30" />
<label for="id_password">Password:</label>
<input type="password" name="password" id="id_password" />
<input type="submit" class="bigbutton" value="login"/>
</form>

If the login is correct the loginview disappears and a tabbar controller will appear.

How can I send the two fields username and password to my page.php? And how can I receive a cookie for that?

Bart
  • 19,692
  • 7
  • 68
  • 77

1 Answers1

0

Look into using ASIHTTPRequest to place a form-based HTTP request, specifically use an instance of ASIFormDataRequest. Use the NSHTTPCookieStorage manager to populate and read app cookies.

Community
  • 1
  • 1
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345