I´m having a very odd problem
I´m building a mobile app in HTML5 using phonegap to compile it to a native app.
Inside that app is a contact form and I can´t get it to work. I tried everything i could think of. But every-time i submit the form i receive the code of the php part on my screen.
Obviously the app works just fine on the browser, but not on my iphone.
I even tried using an iframe and added the form there, with the same results.
So my question is. How do i add a contact form (needs to send user info to the client email) inside my app
Any help will be highly appreciated
Thanks
Your structure should be like this if doing holistic approach (html5 to native via Titanium/Phonegap)
in contact.html you need to point to a live server with the PHP file
And then use a postback to submit a thanks page in AJAX or JSON so the user is not prompted to leave the app.
Alternatively UPDATE – Easier approach is just do button like this
Then on your jQuery you can do the action their (they won’t leave your app and you can trigger a replace div with thanks etc)
// Start the jQuery form process engine
jQUERY Sample
PHP SAMPLE