Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

HTML5, CSS3 & Javascript approach to appointment bookings [PhoneGap]

Hi All,

I'm currently in the process of finishing my uni project but have become stuck on a certain function.

I have a form that takes user details but can't understand the concept to dedicating specified time slots with the ability of deleting or removing that time as soon as an end-user takes in their form submission. - What is the best approach to this?

Also, I used a PHP script to submit the form information to a specified email address but when using PhoneGap to make the code into a mobile application the form will not work within the application. Research has shown that PHP will not work. Is there a work around this?

I really appreciate any support given on this, as I'm feeling the pressure with deadlines around the corner.

Thanks a million.

1 Answer

Andrew McCormick
Andrew McCormick
17,729 Points

Phonegap will not display a PHP page. You need to use AJAX to communicate with a PHP script running on your server and then sending the information back to an html page to display in your app. Check out this to start: http://www.php4every1.com/tutorials/jquery-ajax-tutorial/