Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Majid Mokhtari
10,506 PointsProblem with showing the thank you message
I included this code:
<?php
header("Location: contact.php?status=thanks");
exit;
?>
on local server it sends the status=thanks to browser and i see the thank you message, but in real server it does not send it to the browser. In other words I don't see the thank you message:
<?php if(isset($_GET["status"]) AND $_GET["status"] == "thanks"){?>
<h4>Thanks for sending the message. I will contact you soon!</h4>
2 Answers

Chris Southam
1,823 PointsThe problem will be a difference between your local and real server. Do you know what the two are running PHP wise?
Try putting var_dump($_GET);
at the top of your file (after <?php) and see what it outputs.

Majid Mokhtari
10,506 PointsAndrew what do you mean by formatting issue? Chris I did that they are showing same output
Andrew Shook
31,709 PointsAndrew Shook
31,709 Pointsfixed formatting issue so code will show up in code blocks.