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 trialCarlos Ortega
3,092 PointsHow do i make a PHP Age Verification Modal for a Bootstrap Website (Yes/No Form)
I'm using one right now but it has three different pages. I want it to be all from one page
1 Answer
Michael Roberts Jr
Courses Plus Student 11,734 PointsConsider processing the verification on the client side, not the server side in PHP. Trying to do it entirely in PHP (on the server) is going to result in refreshes and/or redirects to the multiple pages, that is just how PHP works... You should instead use Javascript and AJAX if needed.
Carlos Ortega
3,092 PointsCarlos Ortega
3,092 PointsI ended up suing jQuery Cookies and created a Modal using Bootstrap. Thanks for the comment though!