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 > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 01-12-2011, 03:54 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 43
chandaboy is on a distinguished road
Question How can I send the value from a textbox from iphone to php

Hi, everyone,

if any buddy have any tutorial of how to send the values from a textbox thorugh iphone and send this value into php file through post, if you have any tutorial

then plz send it to me..
chandaboy is offline   Reply With Quote
Old 01-12-2011, 08:02 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

via get or post using asihttprequest or nsurlconnection, search on the forum, there are 1 million of similar requests.
__________________
dany_dev is offline   Reply With Quote
Old 01-12-2011, 05:30 PM   #3 (permalink)
Super Moderator
 
Join Date: Oct 2009
Location: San Diego, CA
Posts: 1,586
JasonR is on a distinguished road
Default

In the tutorial section, there's a post about submitting a high score to PHP. It should be pretty close to what you need to do.
JasonR is offline   Reply With Quote
Old 01-14-2011, 12:05 AM   #4 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 43
chandaboy is on a distinguished road
Wink pass the value of textfield from iphone to php

this is the running code,,

SocialCubixAppDelegate *app = (SocialCubixAppDelegate *)[[UIApplication sharedApplication]delegate];
NSLog(@"value in the appDelegate function is: %@", app.currentCountry);
NSString *urlString = [NSString stringWithFormat:@"http://localhost/work/farhan_work.php?user_id=%@",app.currentCountry];
NSString* escapedUrl = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8St ringEncoding];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:escapedUrl]];
[[NSURLConnection alloc] initWithRequest:request delegate:self];
NSLog(@"urlString is :%@", urlString);*/
chandaboy is offline   Reply With Quote
Old 01-16-2011, 08:29 AM   #5 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 79
xqtr is on a distinguished road
Default

This tutorial explains how to post values from objective-c into an php-file connected to MySQL.

iPhone Coding Tutorial ? Creating an Online Leaderboard For Your Games | iCodeBlog
xqtr is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone, php

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: 400
17 members and 383 guests
Brandt, coolman, fredidf, Free App Monster, givensur, iAppDeveloper, jbro, Kryckter, locombiano89, Mah6447, Meoz, simplymuzik3, SLIC, stanny, stevenkik, Tomsky, WeaselPig
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,646
Threads: 94,111
Posts: 402,862
Top Poster: BrianSlick (7,990)
Welcome to our newest member, locombiano89
Powered by vBadvanced CMPS v3.1.0

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