The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
|
Getting data fom iPhone? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Getting data fom iPhone? (/showthread.php?tid=806) |
Getting data fom iPhone? - Bryn - Aug 11th, 2010 Dear friends, I'm developing an iPhone application and I set up a message page from where any user can send out this series of parameters: lat: latitude from the GPS (if present) lng: longitude from the GPS (if present) message: text which is written in the message photo: the binary image that the user has selected device_id: udid of device compass: compass direction of device (if present) application_name: Name of application sending the message post All those data need a "landing page" on my website that should handle them and relay either to my own mailbox or save them to a FormTools db. My problem is: how can I set up FormTools so that I can grab those data? Every online form script I tried expects to get data from an online form on a HTML page, not a series of parameters coming from an external device... Any help would be greatly appreciated! RE: Getting data fom iPhone? - Ben - Aug 14th, 2010 Hi Bryn, Thanks for the post! For info like that, you'd need to extract it from the device itself using javascript. I tinkered with some iPhone development a couple of months ago at work and I think I used some code like this: http://www.digimantra.com/howto/current-location-iphone-safari-firefox-browser/ The W3C is attempting to standardize all this, but navigator.geolocation.getCurrentPosition DOES work on the iPhone - that much I do know. http://dev.w3.org/geo/api/spec-source.html Basically what you'll need to do is extract the coordinates and store them in hidden form fields to pass to Form Tools for storage. For the other information, you'll need to do some Googling, I'm afraid. Good luck with the project! Sounds fun! - Ben |