The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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