Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-03-2010, 11:42 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 9
vertmonkee is on a distinguished road
Default Login tutorial

I am working on an app where users will have to login first to use.

When they put their details in (email address and password) it will send a request to a php page on our server and then return a response.

I have been looking for tutorials on this and can't find any.

Does anyone have any good links?

Thanks
vertmonkee is offline   Reply With Quote
Old 04-04-2010, 06:50 AM   #2 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 65
felixtgomezjr is on a distinguished road
Default

Quote:
Originally Posted by vertmonkee View Post
I am working on an app where users will have to login first to use.

When they put their details in (email address and password) it will send a request to a php page on our server and then return a response.

I have been looking for tutorials on this and can't find any.

Does anyone have any good links?

Thanks
any progress on this? Have you solved your problem? I want do the same thing. Hope you can share the answer.
__________________
The more you know, the more you do not know. Share your thoughts on Shoutbux
felixtgomezjr is offline   Reply With Quote
Old 04-10-2010, 11:10 PM   #3 (permalink)
Code before baby wakes up
 
RobotWoods's Avatar
 
Join Date: Sep 2009
Posts: 189
RobotWoods is on a distinguished road
Default

this thread-->http://www.iphonedevsdk.com/forum/ip...-question.html

is in the same realm...but doesn't include any hashing, but it should be enough to get things moving...takes values from UITextFields, sends to php (via GET), then reads the response into a string
RobotWoods is offline   Reply With Quote
Old 04-11-2010, 10:37 AM   #4 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 9
vertmonkee is on a distinguished road
Default

Quote:
Originally Posted by RobotWoods View Post
this thread-->http://www.iphonedevsdk.com/forum/ip...-question.html

is in the same realm...but doesn't include any hashing, but it should be enough to get things moving...takes values from UITextFields, sends to php (via GET), then reads the response into a string
Thanks for the tip off.

I was thinking I will have a bool for whether the user is logged in or not and depending on it's value display a login form or other view.

Send the username / password entered to my server. Process it with PHP / Mysql and return an xml response.

The xml will depict whether the login credentials were correct or not.

I'll let you know how I get on with this.
vertmonkee is offline   Reply With Quote
Old 04-12-2010, 07:05 AM   #5 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 65
felixtgomezjr is on a distinguished road
Default

Quote:
Originally Posted by RobotWoods View Post
this thread-->http://www.iphonedevsdk.com/forum/ip...-question.html

is in the same realm...but doesn't include any hashing, but it should be enough to get things moving...takes values from UITextFields, sends to php (via GET), then reads the response into a string
Hi RobotWoods, thanks for the information. Do you have a solution to the problem if the method is POST and the login box is in a pop up form? Most websites these days use on-page login box but there are some that uses pop up login box. I dont want to change the way the website do the authentication.

Hope you can help me.
__________________
The more you know, the more you do not know. Share your thoughts on Shoutbux
felixtgomezjr is offline   Reply With Quote
Old 04-12-2010, 09:31 AM   #6 (permalink)
Code before baby wakes up
 
RobotWoods's Avatar
 
Join Date: Sep 2009
Posts: 189
RobotWoods is on a distinguished road
Default

Quote:
Originally Posted by felixtgomezjr View Post
I dont want to change the way the website do the authentication.
So now I'm a little confused. Are you making an app that communicates with a php file like vertmonkee specified? Or are you making a website? If it's a site, you could build the form as usual, and then use the CSS display attribute to hide it, and a javascript function to change the display...like
PHP Code:
<style>#hidden {display:none;}</style>
<script>function view(idaction) {
       if (
action=="hide") {
            
document.getElementById(id).style.display "none";
       } else {
            
document.getElementById(id).style.display "block";
       }
}
</script>
<body>
<span onclick="view('hidden','show');" style="text-decoration:underline;">login</span>
<br>
<span id="hidden"><span onclick="view('hidden','hide');">this is your form code</span></span></body> 

re:POST, this thread (and others, search for "setHTTPMethod POST") have information
RobotWoods is offline   Reply With Quote
Old 07-07-2010, 05:14 PM   #7 (permalink)
Student Developer
 
KidCudi10's Avatar
 
Join Date: May 2010
Posts: 55
KidCudi10 is on a distinguished road
Default Javascript for Login View

I'm working on an app where a user first has to log into the website. Rather than display the website's login view, I want to create my own login view (more iphone-fit). A friend of mine told me that I could just hide the web view, and use javascript to send my view's textfield strings to the site to log in. Has anyone done something fairly similar that can help? Thanks.
KidCudi10 is offline   Reply With Quote
Old 07-07-2010, 05:15 PM   #8 (permalink)
Student Developer
 
KidCudi10's Avatar
 
Join Date: May 2010
Posts: 55
KidCudi10 is on a distinguished road
Default

s
KidCudi10 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 314
7 members and 307 guests
chemistry, Fstuff, heshiming, iAppDeveloper, jbro, kapps11, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,112
Posts: 402,872
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:22 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0