Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1005637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:19:47+00:00 2026-05-16T08:19:47+00:00

HI, i am creating an login screen to my iphone application. i am sending

  • 0

HI,
i am creating an login screen to my iphone application. i am sending the username and password to php using NSURLConnection method. i can successfully send login details to php. My php page returning status values based on the login details.

(status =OK / Fail , redirectionUrl=http://www.balalaa.com)

In DidReceiveData method if i convert the NSData into string i am getting following string for successful login

“STATUS=OK&url=http://www.balalaa.com“.

Is there any way to fetch the values of STATUS and url, without using NSPredict. Is there any other way to conert the NSData into NSDictionary to fetch values for STATUS key?

Thanks in advance.
Ram

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:19:47+00:00Added an answer on May 16, 2026 at 8:19 am
    NSString *urlDataString = //Whatever data was returned from the server as an NSString
    NSArray *parameters = [urlDataString componentsSeparatedByString:@"&"];
    NSMutableDictionary *parameterDictionary = [NSMutableDictionary dictionary];
    for (NSString *parameter in parameters) {
       NSArray *parameterComponents = [parameter componentsSeparatedByString:@"="];
       [parameterDictionary setObject:[parameterComponents objectAtIndex:1]
                               forKey:[parameterComponents objectAtIndex:0]];
    }
    

    On the other hand, NSScanner will give you a much more efficient way of doing this, and either way you will have to un-escape whatever values and keys you get from the dictionary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a login system for a web application using PHP. My question
I'm creating a login screen(username,password as two fields, Login button).Now, I have to enter
I'm creating a login for a website using PHP but when I try to
I am creating a login screen for an application in C#. In my login
I am creating a login screen for my application with more than 1 authentication.
I'm creating an application whose main screen can consist of one of three Scenarios.
I'm trying to create a simple username/password login screen. I have the layout done,
I'm creating a simple messaging application where users can login or register and communicate
I'm creating my first Windows Mobile Application. I have a login screen- I am
I'm creating an application in Qt (Nokia SDK) which should hold a login screen,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.