I was following a video tutorail online to send data to a php file then store that in a database.
I'm really confused how it evan works as theres not post? Its just collecting information from variables. I few youtube comments say the same thing, but some how his works?
My code so far...
- (IBAction)Submit:(id)sender {
NSString *strURL = [NSString stringWithFormat:@"http://www.bigwavemedia.co.uk/ios/contact.php?name=%@", nameField.text];
//to execute php code
NSData *dataURL = [NSData dataWithContentsOfURL:[NSURL URLWithString:strURL]];
NSString *strRes = [[NSString alloc] initWithData:dataURL encoding:NSUTF8StringEncoding];
NSLog(@"%@", strRes);
}
When I hit the submit button, evan though its linked up I get no response?