I was wondering how will I use jQuery's
.post() to send data to a php file on my webserver from a Phonegap Native iPhone App?
Does it have to be xml or json? Or can I just send regular html post data to the file?
If you can show me an example that would be great!
UPDATE: Thanks Drew for the stellar solution! I also found an article that explained the process pretty well too.
UPDATE 2: There is a problem with my script.
Here is my PHP
<?php $email = $_POST["email"]; $profile = array($email, "Karl", "Clement", "Gangsta Love!", "bio bio bio bio bio bio bio bio bio bio bio bio bio bio bio bio bio bio", "Ottawa", "http://a3.twimg.com/profile_images/1459354642/IMG_1560_normal.jpg"); header('Content-Type:text/json'); echo json_encode($profile); ?>
Thank you so much for your help!