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
adrie silva
6,416 PointsI have a question about redirecting contact forms when using iframes
This question is for Randy Hoyt or anyone who knows the answer,
If I'm placing my contact form in an iframe, or using an iframe, the function header () won't work, what do you suggest?
Thanks!
1 Answer
Randy Hoyt
Treehouse Guest TeacherThere's a good discussion of the different issues and options for this over at Stack Overflow:
- http://stackoverflow.com/questions/2985353/php-header-location-inside-iframe-to-load-in-top-location
Can I ask why you decided to put it in an iframe? That would help me figure out which of these methods might work best for you.