Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


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,730 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/