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 trialPauline Orr
15,321 PointsHow to keep sidebar in redirection?
Hello! I got this redirection and request method to work for a website I am working on. However once the form is submitted and redirected to the same page, the sidebar is gone. The footer, header and everything else remains but not the sidebar I have. How do I make sure it stays on the page once redirected?
I am using redirection: header("location:estimate.php?status=thanks");
Then an if statement:
if (isset($_GET["status"]) && $_GET["status"] == "thanks") {
echo "Thank you for your estimate request. We will return your inquiry soon!";
} else { //my form here. } ?>
My sidebar is gone. I inspect elements and its technically there but I'm not seeing an CSS to make it hidden. It also shows "=0" in the inspect element window.