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! While you're at it, check out some resources Treehouse students have shared here.

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

PHP

Foundation 5 Forms

OK guys I am following along the php videos form adding a form to the T shirt website which isn't a problem what i'm after is some advice on using the foundation reveal tool basically I have an enquiry button that fires a reveal modal window all the form fields are loading correctly but in submit the reveal modal window closes is there anyway to keep this open and display the success message just using Randys PHP and HTML CSS ??

Any advice would be appreciated

2 Answers

Hello Anthony Hind,

Without seeing your code in full I can really only make a guess that your problem happens as you are submitting a form. When you submit, the POST method action will happen and completely reload the page for the success message. If you want to avoid this, you will need to submit your POST data through ajax.

Feel free to post your code to [gist.github.com](gist.github.com) and I can try and assist you further.

Regards, Hampton

Hi Hampton,

I have put this project to the side for the moment it was just something i was testing out really, thank you for your response and when i get back on to it i'll probably be back on asking for advice :)