You should remove the leading &
in myRequestString
and the problem is likely that the correct content-type
header is not being sent. Try adding a call to
[request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"content-type"];
You should also not pass nil
for error, so you can see what the client thinks is going on.
Unrelated, but your PHP code is open to SQL injection attacks.
Related Contents:
- COMET (server push to client) on iPhone [closed]
- Objective C HTML escape/unescape
- Tab bar controller inside a navigation controller, or sharing a navigation root view
- NSUserDefaults synchronize-method
- How to send json data in the Http request using NSURLRequest
- Has anyone implemented the PayPal API through a native iPhone app?
- Why do you use an underscore for an instance variable, but not its corresponding property? [duplicate]
- How to compare two NSDates: Which is more recent?
- Transforming a rectangle image into a quadrilateral using a CATransform3D
- UITextView with Syntax Highlighting
- Where to place the “Core Data Stack” in a Cocoa/Cocoa Touch application
- Difference between [UIImage imageNamed…] and [UIImage imageWithData…]?
- Lazy load images in UITableViewCell
- UUID mismatch detected with the loaded library
- UIImage rounded corners
- Curve text on existing circle
- Is it possible to configure a UITableView to allow multiple-selection?
- Any quick and dirty anti-aliasing techniques for a rotated UIImageView?
- How to calculate the width of a text string of a specific font and font-size?
- How to share custom data between iPhone applications?
- iOS 6 shouldAutorotate: is NOT being called
- How can I change the animation style of a modal UIViewController?
- Sound not working in iPhone Simulator?
- How can I pop a view from a UINavigationController and replace it with another in one operation?
- Disable UITextField keyboard?
- How can I programmatically pause an NSTimer?
- Figure out UIBarButtonItem frame in window?
- Accessing iPhone WiFi Information via SDK
- Cancel UILocalNotification
- Why do I have to call super -dealloc last, and not first?
- How to find the distance between two CG points?
- Generate hash from UIImage
- Are keys and values in an NSDictionary ordered?
- Moving UITabBarItem Image down?
- Access App Identifier Prefix programmatically
- NSOperation on the iPhone
- Add UIView Above All Other Views, Including StatusBar
- How to write a simple Ping method in Cocoa/Objective-C
- UIImagePNGRepresentation issues? / Images rotated by 90 degrees
- UITextField: move view when keyboard appears
- How can I detect a double tap on a certain cell in UITableView?
- Moving a CLLocation by x meters
- How to figure out the font size of a UILabel when -adjustsFontSizeToFitWidth is set to YES?
- NSString to NSArray
- How to make a superview intercept button touch events?
- UISwitch in a UITableView cell
- UIMenuController not showing up
- iOS 5: Curious about UIAppearance
- drawRect not being called in my subclass of UIImageView
- how to increase font size in UIWebView